aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index 2f3fcdc5..7303f503 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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);