mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Backspace
This commit is contained in:
parent
741c0394b7
commit
4d883bbe50
1 changed files with 10 additions and 4 deletions
|
@ -138,15 +138,21 @@ U0 InputTask(U0 *args) {
|
||||||
TCPSocketSendString(sock, "\x1B[B");
|
TCPSocketSendString(sock, "\x1B[B");
|
||||||
break;
|
break;
|
||||||
case SC_TAB:
|
case SC_TAB:
|
||||||
TCPSocketSend(sock, 0x09, 0);
|
TCPSocketSend(sock, 0x09, 1);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case CH_BACKSPACE:
|
||||||
|
// TCPSocketSendString(sock, "\x7F\x1B[D");
|
||||||
|
// TCPSocketSendString(sock, "\x7F");
|
||||||
|
// TCPSocketSendString(sock, "\x08\x20\x08");
|
||||||
|
TCPSocketSendString(sock, "\x08");
|
||||||
|
break;
|
||||||
case CH_ESC:
|
case CH_ESC:
|
||||||
TCPSocketSend(sock, 0x27, 0);
|
TCPSocketSend(sock, 0x27, 1);
|
||||||
break;
|
break;
|
||||||
case CH_SHIFT_ESC:
|
case CH_SHIFT_ESC:
|
||||||
force_disconnect = TRUE;
|
force_disconnect = TRUE;
|
||||||
|
@ -208,7 +214,7 @@ U0 Telnet(U8 *host, U16 port=TELNET_PORT) {
|
||||||
DocClear;
|
DocClear;
|
||||||
|
|
||||||
// probably should use word wrap?
|
// probably should use word wrap?
|
||||||
// DocPrint(, "$$WW,1$$");
|
DocPrint(, "$$WW,1$$");
|
||||||
|
|
||||||
sock = TelnetOpen(host, port);
|
sock = TelnetOpen(host, port);
|
||||||
if (sock <= 0) {
|
if (sock <= 0) {
|
||||||
|
|
Loading…
Reference in a new issue