aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-11-03 00:26:42 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-11-03 00:26:42 +0000
commite1b6aa87fbb2b32ef27dfbe6d768d083ad040499 (patch)
tree172b129c621555dc24231f76d9737139300d73fe /terminal.h
parentslave: turn on FD_CLOEXEC after slave has been spawned (diff)
parentterminal: cleanup asynchronous ptmx output handling (diff)
Merge branch 'async-ptmx'
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 11571519..0ed83877 100644
--- a/terminal.h
+++ b/terminal.h
@@ -145,6 +145,12 @@ enum mouse_reporting {
enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR };
+struct ptmx_buffer {
+ void *data;
+ size_t len;
+ size_t idx;
+};
+
struct terminal {
struct fdm *fdm;
@@ -152,6 +158,8 @@ struct terminal {
int ptmx;
bool quit;
+ tll(struct ptmx_buffer) ptmx_buffer;
+
enum cursor_keys cursor_keys_mode;
enum keypad_keys keypad_keys_mode;
bool reverse;
@@ -303,6 +311,7 @@ bool term_shutdown(struct terminal *term);
int term_destroy(struct terminal *term);
void term_reset(struct terminal *term, bool hard);
+bool term_to_slave(struct terminal *term, const void *data, size_t len);
void term_damage_rows(struct terminal *term, int start, int end);
void term_damage_rows_in_view(struct terminal *term, int start, int end);