diff --git a/src/apps/serialconnect/SerialApp.cpp b/src/apps/serialconnect/SerialApp.cpp index e932da6e47..e4192aecaa 100644 --- a/src/apps/serialconnect/SerialApp.cpp +++ b/src/apps/serialconnect/SerialApp.cpp @@ -46,7 +46,7 @@ void SerialApp::ReadyToRun() void SerialApp::MessageReceived(BMessage* message) { - switch(message->what) + switch (message->what) { case kMsgOpenPort: { @@ -88,10 +88,6 @@ void SerialApp::MessageReceived(BMessage* message) &size) != B_OK) break; - if (bytes[0] == '\n') { - size = 2; - bytes = "\r\n"; - } fSerialPort.Write(bytes, size); break; } diff --git a/src/apps/serialconnect/TermView.cpp b/src/apps/serialconnect/TermView.cpp index e1ed1b9135..68b97733a5 100644 --- a/src/apps/serialconnect/TermView.cpp +++ b/src/apps/serialconnect/TermView.cpp @@ -161,6 +161,10 @@ TermView::KeyDown(const char* bytes, int32 numBytes) numBytes = 3; bytes = "\x1B[D"; break; + case B_BACKSPACE: + numBytes = 1; + bytes = "\x7F"; + break; } // Send the bytes to the serial port