From 7379198f4a849dc12e48763084684ca6bab9a1c5 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 15 Jul 2019 15:42:21 +0200 Subject: Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhere --- terminal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index d6d75641..b7c7cf69 100644 --- a/terminal.c +++ b/terminal.c @@ -10,6 +10,7 @@ #define LOG_ENABLE_DBG 0 #include "log.h" #include "grid.h" +#include "vt.h" #define min(x, y) ((x) < (y) ? (x) : (y)) #define max(x, y) ((x) > (y) ? (x) : (y)) @@ -337,7 +338,7 @@ report_mouse_click(struct terminal *term, int encoded_button, int row, int col, return; } - write(term->ptmx, response, strlen(response)); + vt_to_slave(term, response, strlen(response)); } static void -- cgit v1.3