From b2f97ce02eb78ccb5697f966d94fb691dbc81941 Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Fri, 6 Mar 2015 14:18:33 +0100 Subject: [PATCH] Bug 205765 - Partial revert: Don't send DEL for backspace Some telnet servers don't handle the DEL character properly. Change-Id: If9189f6334ce3b07b090114406e264b4af8daf3e Signed-off-by: Anton Leherbauer --- .../terminal/emulator/VT100TerminalControl.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/terminal/plugins/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/emulator/VT100TerminalControl.java b/terminal/plugins/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/emulator/VT100TerminalControl.java index d827b3c3210..86f44659954 100644 --- a/terminal/plugins/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/emulator/VT100TerminalControl.java +++ b/terminal/plugins/org.eclipse.tm.terminal/src/org/eclipse/tm/internal/terminal/emulator/VT100TerminalControl.java @@ -949,10 +949,13 @@ public class VT100TerminalControl implements ITerminalControlForText, ITerminalC return; } - if (event.keyCode == SWT.BS) { - sendChar('\u007f', altKeyPressed); - return; - } + // TODO Linux tty is usually expecting a DEL (^?) character + // but this causes issues with some telnet servers and + // serial connections. Workaround: stty erase ^H + //if (event.keyCode == SWT.BS) { + // sendChar(SWT.DEL, altKeyPressed); + // return; + //} // If the event character is NUL ('\u0000'), then a special key was pressed // (e.g., PageUp, PageDown, an arrow key, a function key, Shift, Alt,