From 0979a0e2e56f196684260e96e2554ebf0b828667 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 28 Oct 2019 18:25:19 +0100 Subject: terminal: implement term_init() and term_destroy() --- terminal.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 2f3fcdc5..7303f503 100644 --- a/terminal.h +++ b/terminal.h @@ -8,6 +8,8 @@ #include #include +//#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); -- cgit v1.3