mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-23 06:59:25 -05:00
Robert de Bath's implementation of ESC [ Z (backtab)
[originally from svn r1155]
This commit is contained in:
parent
35bdd95a56
commit
48226525f7
15
terminal.c
15
terminal.c
@ -1949,6 +1949,21 @@ void term_out(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
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', '='):
|
case ANSI('L', '='):
|
||||||
compatibility(OTHER);
|
compatibility(OTHER);
|
||||||
use_bce = (esc_args[0] <= 0);
|
use_bce = (esc_args[0] <= 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user