1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-26 10:25:32 +02:00

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 <anton.leherbauer@windriver.com>
This commit is contained in:
Anton Leherbauer 2015-03-06 14:18:33 +01:00
parent 6326319292
commit b2f97ce02e

View file

@ -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,