diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-15 13:42:21 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-15 13:42:21 +0000 |
| commit | 7379198f4a849dc12e48763084684ca6bab9a1c5 (patch) | |
| tree | e8099f0c0a0aba895c52025f01f7daa96b5f659b /csi.c | |
| parent | vt: add vt_to_slave() (diff) | |
Use vt_to_slave() instead of calling write(term->ptmx, ...) everywhere
Diffstat (limited to 'csi.c')
| -rw-r--r-- | csi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -335,7 +335,7 @@ csi_dispatch(struct terminal *term, uint8_t final) case 0: { switch (final) { case 'c': - write(term->ptmx, "\033[?6c", 5); + vt_to_slave(term, "\033[?6c", 5); break; case 'd': { @@ -598,7 +598,7 @@ csi_dispatch(struct terminal *term, uint8_t final) snprintf(reply, sizeof(reply), "\x1b[%d;%dR", term->cursor.row + 1, term->cursor.col + 1); - write(term->ptmx, reply, strlen(reply)); + vt_to_slave(term, reply, strlen(reply)); break; } @@ -833,7 +833,7 @@ csi_dispatch(struct terminal *term, uint8_t final) break; } - write(term->ptmx, "\033[?6c", 5); + vt_to_slave(term, "\033[?6c", 5); break; } |
