1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +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:
Fabrizio Iannetti 2021-04-18 10:53:04 +02:00 committed by Jonah Graham
parent 97c834c890
commit 6dbad0b10e

View file

@ -395,6 +395,14 @@ public class VT100Emulator implements ControlListener {
resetTerminal();
break;
case 'M':
// Reverse line feed
ansiState = ANSISTATE_INITIAL;
if (text.getCursorLine() == 0)
text.scrollDown(1);
moveCursorUp(1);
break;
default:
Logger.log("Unsupported escape sequence: escape '" + character + "'"); //$NON-NLS-1$ //$NON-NLS-2$
ansiState = ANSISTATE_INITIAL;