Skip to content

Commit 03b2e7c

Browse files
fabrizioiannettijonahgraham
authored andcommitted
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 <[email protected]>
1 parent 0c7ffd4 commit 03b2e7c

File tree

1 file changed

+8
-0
lines changed
  • terminal/plugins/org.eclipse.tm.terminal.control/src/org/eclipse/tm/internal/terminal/emulator

1 file changed

+8
-0
lines changed

terminal/plugins/org.eclipse.tm.terminal.control/src/org/eclipse/tm/internal/terminal/emulator/VT100Emulator.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,14 @@ private void processNewText() throws IOException {
395395
resetTerminal();
396396
break;
397397

398+
case 'M':
399+
// Reverse line feed
400+
ansiState = ANSISTATE_INITIAL;
401+
if (text.getCursorLine() == 0)
402+
text.scrollDown(1);
403+
moveCursorUp(1);
404+
break;
405+
398406
default:
399407
Logger.log("Unsupported escape sequence: escape '" + character + "'"); //$NON-NLS-1$ //$NON-NLS-2$
400408
ansiState = ANSISTATE_INITIAL;

0 commit comments

Comments
 (0)