Saturday, 29 September 2018

Prevent sending of CR/LF in PuTTY


I'm using PuTTY (Windows 7) to send data using a Raw connection. I type in the data I want to send, but I have to press Return to actually have it transmit the data.


However, the problem is that the CR/LF is sent along with the data, which is invalid as far as the server application is concerned.


Is there a way of either having PuTTY not send the actual CR/LF as a result of pressing Return, or another way of sending the data that was just typed in?



Answer




I type in the data I want to send, but I have to press Return to actually have it transmit the data.



That's because you have enabled the Local Line Editing feature in the Terminal menu.



Is there a way of either having PuTTY not send the actual CR/LF as a result of pressing Return, ...



No (although it can send just the CR without the LF).



... or another way of sending the data that was just typed in?



Force that Local Line Editing feature off, and whatever you type will be transmitted immediately. You will not need to type the Enter key unless you actually want to send a CR character.


That also means that if you cannot type as fast the baudrate allows, then the receiving device better not have any constraints (e.g. such as Modbus) on intercharacter timing.
Also any mistakes you type cannot be undone, because the Backspace key will send a control-H (value 0x08) character instead of erasing the previous keystroke.


Note that the Enter key should only generate/transmit a CR character. The generation of the accompanying LF character is configurable.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...