mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 06:02:11 +02:00
Bug 572938 Terminal: add support for reverse linefeed
Scroll up is not working with `less`, `man`, probably other programs. Change-Id: I99d2472ab09df6b79fffbcaa581f3024c44d3ead Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
This commit is contained in:
parent
97c834c890
commit
6dbad0b10e
1 changed files with 8 additions and 0 deletions
|
@ -395,6 +395,14 @@ public class VT100Emulator implements ControlListener {
|
||||||
resetTerminal();
|
resetTerminal();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'M':
|
||||||
|
// Reverse line feed
|
||||||
|
ansiState = ANSISTATE_INITIAL;
|
||||||
|
if (text.getCursorLine() == 0)
|
||||||
|
text.scrollDown(1);
|
||||||
|
moveCursorUp(1);
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Logger.log("Unsupported escape sequence: escape '" + character + "'"); //$NON-NLS-1$ //$NON-NLS-2$
|
Logger.log("Unsupported escape sequence: escape '" + character + "'"); //$NON-NLS-1$ //$NON-NLS-2$
|
||||||
ansiState = ANSISTATE_INITIAL;
|
ansiState = ANSISTATE_INITIAL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue