terminal.h
Go to the documentation of this file.
1 #ifndef NVIM_TERMINAL_H
2 #define NVIM_TERMINAL_H
3 
4 #include <stdbool.h>
5 #include <stddef.h>
6 #include <stdint.h>
7 
8 typedef struct terminal Terminal;
9 typedef void (*terminal_write_cb)(char *buffer, size_t size, void *data);
10 typedef void (*terminal_resize_cb)(uint16_t width, uint16_t height, void *data);
11 typedef void (*terminal_close_cb)(void *data);
12 
13 #include "nvim/buffer_defs.h"
14 
15 typedef struct {
16  void *data;
17  uint16_t width, height;
22 
23 #ifdef INCLUDE_GENERATED_DECLARATIONS
24 # include "terminal.h.generated.h"
25 #endif
26 #endif // NVIM_TERMINAL_H
TerminalOptions::write_cb
terminal_write_cb write_cb
Definition: terminal.h:18
terminal_close_cb
void(* terminal_close_cb)(void *data)
Definition: terminal.h:11
TerminalOptions::width
uint16_t width
Definition: terminal.h:17
size
size_t size
Definition: regexp_nfa.c:5109
TerminalOptions
Definition: terminal.h:15
void
void(WINAPI *pClosePseudoConsole)(HPCON)
TerminalOptions::close_cb
terminal_close_cb close_cb
Definition: terminal.h:20
TerminalOptions::resize_cb
terminal_resize_cb resize_cb
Definition: terminal.h:19
TerminalOptions::data
void * data
Definition: terminal.h:16
buffer_defs.h
terminal_resize_cb
void(* terminal_resize_cb)(uint16_t width, uint16_t height, void *data)
Definition: terminal.h:10
terminal
Definition: terminal.c:103
terminal_write_cb
void(* terminal_write_cb)(char *buffer, size_t size, void *data)
Definition: terminal.h:9