diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-10-28 17:25:19 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-10-28 17:25:19 +0000 |
| commit | 0979a0e2e56f196684260e96e2554ebf0b828667 (patch) | |
| tree | 51225d98a9317a1e193b470b8ce0b8ce89578c10 /terminal.h | |
| parent | wayland: move reload_cursor_theme() and update_cursor_surface() to wayland (diff) | |
terminal: implement term_init() and term_destroy()
Diffstat (limited to 'terminal.h')
| -rw-r--r-- | terminal.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -8,6 +8,8 @@ #include <threads.h> #include <semaphore.h> +//#include "config.h" +#include "fdm.h" #include "font.h" #include "tllist.h" #include "wayland.h" @@ -142,6 +144,8 @@ enum mouse_reporting { enum cursor_style { CURSOR_BLOCK, CURSOR_UNDERLINE, CURSOR_BAR }; struct terminal { + struct fdm *fdm; + pid_t slave; int ptmx; bool quit; @@ -283,6 +287,12 @@ struct terminal { } delayed_render_timer; }; +struct config; +struct terminal *term_init( + const struct config *conf, struct fdm *fdm, struct wayland *wayl, + int argc, char *const *argv); +int term_destroy(struct terminal *term); + void term_reset(struct terminal *term, bool hard); void term_damage_rows(struct terminal *term, int start, int end); |
