| author | Kris De Volder | 2012-11-06 05:54:49 (EST) |
|---|---|---|
| committer | Uwe Stieber | 2012-11-06 06:55:19 (EST) |
| commit | 88a08c77144601683ab5bc17177e7c6c15388735 (patch) (side-by-side diff) | |
| tree | c5e58ad78012875c794acfb313e4f06dc063f656 | |
| parent | aa97bb8d1fbff9eec472ccd3ed5496b4c6f10d15 (diff) | |
| download | org.eclipse.tm-88a08c77144601683ab5bc17177e7c6c15388735.zip org.eclipse.tm-88a08c77144601683ab5bc17177e7c6c15388735.tar.gz org.eclipse.tm-88a08c77144601683ab5bc17177e7c6c15388735.tar.bz2 | |
Bugzilla 392107 - Switched interpretation for ESC[0K and ESC[1K sequences
| -rw-r--r-- | terminal/plugins/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/emulator/VT100Emulator.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/terminal/plugins/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/emulator/VT100Emulator.java b/terminal/plugins/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/emulator/VT100Emulator.java index 65ef50c..c693708 100644 --- a/terminal/plugins/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/emulator/VT100Emulator.java +++ b/terminal/plugins/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/emulator/VT100Emulator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2003, 2011 Wind River Systems, Inc. and others. + * Copyright (c) 2003, 2012 Wind River Systems, Inc. and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -17,6 +17,7 @@ * Martin Oberhuber (Wind River) - [168197] Fix Terminal for CDC-1.1/Foundation-1.1 * Michael Scharf (Wind River) - [262996] get rid of TerminalState.OPENED * Martin Oberhuber (Wind River) - [334969] Fix multi-command SGR sequence + * Kris De Volder (VMWare) - [392107] Switched interpretation for ESC[0K and ESC[1K sequences *******************************************************************************/ package org.eclipse.tm.internal.terminal.emulator; @@ -664,13 +665,13 @@ public class VT100Emulator implements ControlListener { switch (ansiParameter) { case 0: - // Erase from beginning to current position (inclusive). - text.eraseLineToCursor(); + // Erase from current position to end (inclusive). + text.eraseLineToEnd(); break; case 1: - // Erase from current position to end (inclusive). - text.eraseLineToEnd(); + // Erase from beginning to current position (inclusive). + text.eraseLineToCursor(); break; case 2: |

