From: Simon Tatham Date: Sat, 23 Jun 2001 16:59:00 +0000 (+0000) Subject: Robert de Bath's implementation of ESC [ Z (backtab) X-Git-Tag: 0.52~269 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=48226525f7f0d8f6fcefedbe31c06a136bb93e77;p=PuTTY.git Robert de Bath's implementation of ESC [ Z (backtab) [originally from svn r1155] --- diff --git a/terminal.c b/terminal.c index 69713680..f0dc9b11 100644 --- a/terminal.c +++ b/terminal.c @@ -1949,6 +1949,21 @@ void term_out(void) } } break; + case 'Z': /* BackTab for xterm */ + compatibility(OTHER); + { + int i = def(esc_args[0], 1); + pos old_curs = curs; + + for(;i>0 && curs.x>0; i--) { + do { + curs.x--; + } while (curs.x >0 && !tabs[curs.x]); + } + fix_cpos; + check_selection(old_curs, curs); + } + break; case ANSI('L', '='): compatibility(OTHER); use_bce = (esc_args[0] <= 0);