summaryrefslogtreecommitdiff
path: root/src/bin/termpty.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/termpty.h')
-rw-r--r--src/bin/termpty.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/bin/termpty.h b/src/bin/termpty.h
index ef07cb9..faeaa6d 100644
--- a/src/bin/termpty.h
+++ b/src/bin/termpty.h
@@ -13,6 +13,7 @@ typedef struct _Termblock Termblock;
13typedef struct _Termexp Termexp; 13typedef struct _Termexp Termexp;
14typedef struct _Termpty Termpty; 14typedef struct _Termpty Termpty;
15typedef struct _Termlink Term_Link; 15typedef struct _Termlink Term_Link;
16typedef struct _TitleIconElem TitleIconElem;
16 17
17#define COL_DEF 0 18#define COL_DEF 0
18#define COL_BLACK 1 19#define COL_BLACK 1
@@ -81,12 +82,14 @@ struct _Termatt
81 unsigned short fraktur : 1; 82 unsigned short fraktur : 1;
82 unsigned short framed : 1; 83 unsigned short framed : 1;
83 unsigned short encircled : 1; 84 unsigned short encircled : 1;
84 unsigned short overlined : 1; 85 unsigned short overlined : 1; // TODO: support it
86 unsigned short tab_inserted : 1;
87 unsigned short tab_last : 1;
85#if defined(SUPPORT_80_132_COLUMNS) 88#if defined(SUPPORT_80_132_COLUMNS)
86 unsigned short is_80_132_mode_allowed : 1; 89 unsigned short is_80_132_mode_allowed : 1;
87 unsigned short bit_padding : 11; 90 unsigned short bit_padding : 9;
88#else 91#else
89 unsigned short bit_padding : 12; 92 unsigned short bit_padding : 10;
90#endif 93#endif
91 uint16_t link_id; 94 uint16_t link_id;
92}; 95};
@@ -166,12 +169,7 @@ struct _Termpty
166 Backlog_Beacon backlog_beacon; 169 Backlog_Beacon backlog_beacon;
167 int w, h; 170 int w, h;
168 int fd, slavefd; 171 int fd, slavefd;
169#if defined(ENABLE_TESTS)
170 struct ty_sb write_buffer; 172 struct ty_sb write_buffer;
171#endif
172#if defined(ENABLE_FUZZING)
173 int fd_dev_null;
174#endif
175 struct { 173 struct {
176 int curid; 174 int curid;
177 Eina_Hash *blocks; 175 Eina_Hash *blocks;
@@ -210,6 +208,7 @@ struct _Termpty
210 uint8_t *bitmap; 208 uint8_t *bitmap;
211 uint32_t size; 209 uint32_t size;
212 } hl; 210 } hl;
211 TitleIconElem *title_icon_stack;
213}; 212};
214 213
215struct _Termcell 214struct _Termcell
@@ -279,17 +278,12 @@ Termpty *termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd,
279void termpty_free(Termpty *ty); 278void termpty_free(Termpty *ty);
280void termpty_config_update(Termpty *ty, Config *config); 279void termpty_config_update(Termpty *ty, Config *config);
281 280
282void termpty_backlog_lock(void);
283void termpty_backlog_unlock(void);
284
285Termcell *termpty_cellrow_get(Termpty *ty, int y, ssize_t *wret); 281Termcell *termpty_cellrow_get(Termpty *ty, int y, ssize_t *wret);
286Termcell * termpty_cell_get(Termpty *ty, int y_requested, int x_requested); 282Termcell * termpty_cell_get(Termpty *ty, int y_requested, int x_requested);
287ssize_t termpty_row_length(Termpty *ty, int y); 283ssize_t termpty_row_length(Termpty *ty, int y);
288void termpty_write(Termpty *ty, const char *input, int len); 284void termpty_write(Termpty *ty, const char *input, int len);
289void termpty_resize(Termpty *ty, int new_w, int new_h); 285void termpty_resize(Termpty *ty, int new_w, int new_h);
290void termpty_resize_tabs(Termpty *ty, int old_w, int new_w); 286void termpty_resize_tabs(Termpty *ty, int old_w, int new_w);
291void termpty_backlog_size_set(Termpty *ty, size_t size);
292ssize_t termpty_backlog_length(Termpty *ty);
293void termpty_backscroll_adjust(Termpty *ty, int *scroll); 287void termpty_backscroll_adjust(Termpty *ty, int *scroll);
294 288
295pid_t termpty_pid_get(const Termpty *ty); 289pid_t termpty_pid_get(const Termpty *ty);