mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 04:15:35 +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:
parent
6326319292
commit
b2f97ce02e
1 changed files with 7 additions and 4 deletions
|
@ -949,10 +949,13 @@ public class VT100TerminalControl implements ITerminalControlForText, ITerminalC
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.keyCode == SWT.BS) {
|
// TODO Linux tty is usually expecting a DEL (^?) character
|
||||||
sendChar('\u007f', altKeyPressed);
|
// but this causes issues with some telnet servers and
|
||||||
return;
|
// 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
|
// 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,
|
// (e.g., PageUp, PageDown, an arrow key, a function key, Shift, Alt,
|
||||||
|
|
Loading…
Add table
Reference in a new issue