Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhere

This commit is contained in:
Daniel Eklöf 2019-07-15 15:42:21 +02:00
parent 2f6b8d232f
commit 7379198f4a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 16 additions and 13 deletions

View file

@ -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