summaryrefslogtreecommitdiff
path: root/src/stable/protocoltelnet.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2015-07-07 20:07:44 +0000
committerMike Buland <eichlan@xagasoft.com>2015-07-07 20:07:44 +0000
commit3363ebc70f86c5145a98984943488052f5a29189 (patch)
tree89f5a75ab7e09ff65c15cb9ea87fdb7b35c38518 /src/stable/protocoltelnet.cpp
parent5ae0b88a215294435e0c26c7af9ee24f54995b69 (diff)
downloadlibbu++-3363ebc70f86c5145a98984943488052f5a29189.tar.gz
libbu++-3363ebc70f86c5145a98984943488052f5a29189.tar.bz2
libbu++-3363ebc70f86c5145a98984943488052f5a29189.tar.xz
libbu++-3363ebc70f86c5145a98984943488052f5a29189.zip
In theory the protocol client shouldn't send a backspace to indicate that a
backspace key was pressed, backspace is to move the cursor back one non-destructively, DEL is sent to indicate that a backspace was pressed. I now treat BS as DEL when serving because some clients (windows), send the BS instead of DEL key and everything else just seems to take it. I think there's a way to negotiate that, which I'll look into later.
Diffstat (limited to 'src/stable/protocoltelnet.cpp')
-rw-r--r--src/stable/protocoltelnet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stable/protocoltelnet.cpp b/src/stable/protocoltelnet.cpp
index d6e22d1..9cf2a7b 100644
--- a/src/stable/protocoltelnet.cpp
+++ b/src/stable/protocoltelnet.cpp
@@ -479,6 +479,7 @@ void Bu::ProtocolTelnet::onCtlChar( char cChr )
479 switch( cChr ) 479 switch( cChr )
480 { 480 {
481 case CH_DEL: 481 case CH_DEL:
482 case CH_BS: // This isn't exactly standard
482 { 483 {
483 if( sDataBuf.getSize() > 0 ) 484 if( sDataBuf.getSize() > 0 )
484 { 485 {