Skip to content

Commit

Permalink
termemu: support ^[7 / ^[8
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Jun 30, 2019
1 parent 5bc6305 commit d585dac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/termemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,15 @@ static void _ansi_put(term_state_t * s, char c) {
} else if (c == 'T') {
s->escape = 5;
ansi_buf_add(s, c);
} else if (c == '7') {
s->escape = 0;
s->buflen = 0;
s->save_x = callbacks->get_csr_x();
s->save_y = callbacks->get_csr_y();
} else if (c == '8') {
s->escape = 0;
s->buflen = 0;
callbacks->set_csr(s->save_x, s->save_y);
} else {
/* This isn't a bracket, we're not actually escaped!
* Get out of here! */
Expand Down

0 comments on commit d585dac

Please sign in to comment.