Data Structures | Macros | Typedefs | Functions
terminal.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#include <vterm.h>
#include "nvim/log.h"
#include "nvim/vim.h"
#include "nvim/terminal.h"
#include "nvim/message.h"
#include "nvim/memory.h"
#include "nvim/option.h"
#include "nvim/highlight.h"
#include "nvim/macros.h"
#include "nvim/mbyte.h"
#include "nvim/buffer.h"
#include "nvim/ascii.h"
#include "nvim/getchar.h"
#include "nvim/ui.h"
#include "nvim/syntax.h"
#include "nvim/screen.h"
#include "nvim/keymap.h"
#include "nvim/edit.h"
#include "nvim/mouse.h"
#include "nvim/memline.h"
#include "nvim/map.h"
#include "nvim/misc1.h"
#include "nvim/move.h"
#include "nvim/main.h"
#include "nvim/state.h"
#include "nvim/ex_docmd.h"
#include "nvim/ex_cmds.h"
#include "nvim/window.h"
#include "nvim/fileio.h"
#include "nvim/event/loop.h"
#include "nvim/event/time.h"
#include "nvim/os/input.h"
#include "nvim/api/private/helpers.h"
#include "nvim/api/private/handle.h"

Data Structures

struct  terminal_state
 
struct  ScrollbackLine
 
struct  terminal
 

Macros

#define REFRESH_DELAY   10
 
#define GET_CONFIG_VALUE(k, o)
 

Typedefs

typedef struct terminal_state TerminalState
 

Functions

void terminal_teardown (void)
 
Terminalterminal_open (TerminalOptions opts)
 
void terminal_close (Terminal *term, char *msg)
 
void terminal_check_size (Terminal *term)
 
void terminal_enter (void)
 
void terminal_destroy (Terminal *term)
 
void terminal_send (Terminal *term, char *data, size_t size)
 
void terminal_paste (long count, char_u **y_array, size_t y_size)
 
void terminal_flush_output (Terminal *term)
 
void terminal_send_key (Terminal *term, int c)
 
void terminal_receive (Terminal *term, char *data, size_t len)
 
void terminal_get_line_attributes (Terminal *term, win_T *wp, int linenr, int *term_attrs)
 
Buffer terminal_buf (const Terminal *term)
 

Macro Definition Documentation

#define GET_CONFIG_VALUE (   k,
 
)
Value:
do { \
Error err = ERROR_INIT; \
/* Only called from terminal_open where curbuf->terminal is the */ \
/* context */ \
o = dict_get_value(curbuf->b_vars, cstr_as_string(k), &err); \
if (o.type == kObjectTypeNil) { \
} \
} while (0)
if(len)
Definition: encode.c:222
String cstr_as_string(char *str) FUNC_ATTR_PURE
Definition: helpers.c:727
void api_clear_error(Error *value) FUNC_ATTR_NONNULL_ALL
Definition: helpers.c:948
#define ERROR_INIT
Definition: defs.h:14
Object dict_get_value(dict_T *dict, String key, Error *err)
Definition: helpers.c:161
Definition: defs.h:101
EXTERN dict_T globvardict
Definition: globals.h:227
#define REFRESH_DELAY   10

Typedef Documentation

typedef struct terminal_state TerminalState

Function Documentation

Buffer terminal_buf ( const Terminal term)
void terminal_check_size ( Terminal term)
void terminal_close ( Terminal term,
char *  msg 
)
void terminal_destroy ( Terminal term)
void terminal_enter ( void  )
void terminal_flush_output ( Terminal term)
void terminal_get_line_attributes ( Terminal term,
win_T wp,
int  linenr,
int *  term_attrs 
)
Terminal* terminal_open ( TerminalOptions  opts)
void terminal_paste ( long  count,
char_u **  y_array,
size_t  y_size 
)
void terminal_receive ( Terminal term,
char *  data,
size_t  len 
)
void terminal_send ( Terminal term,
char *  data,
size_t  size 
)
void terminal_send_key ( Terminal term,
int  c 
)
void terminal_teardown ( void  )