LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Minicom carriage return + hyperterminal (https://www.linuxquestions.org/questions/linux-software-2/minicom-carriage-return-hyperterminal-738847/)

kewl 07-09-2009 04:53 AM

Minicom carriage return + hyperterminal
 
When I press enter through hyperterminal it sends \r\n
but in minicom it is just sending \n is there any method using which we can make minicom behave exactly same as hyperterminal?

should i try with some terminal settings or anyother stuffs?

kewl 07-09-2009 06:14 AM

i tried setting the flag

stSerialTermios.c_oflag |= ONLCR;

but still I am not able to recieve \r\n when i enter \n from minicom to another minicom.

ergit 03-22-2010 11:27 AM

carriage return on cutecom and command line
 
Did you solve your problem? I have a similar question with a device I'm working with.
I connect with the device and get a prompt where I'm supposed to type commands and hit ENTER. But when I do this, the cursor just goes to the next line and the command is not executed.
I assume this is a problem with recognition of the "end of line" or "carriage return"... so I tried the usual shell non printing characters: COMMAND\n\r and I added the onlcr option to the stty command but it still don't works :-(
By the way I'm using bash.
If I connect with the device using cutecom, there is no problem at all, I just select the option "CR line end" and every thing works fine.
Any suggestions would be appreciated.Thanks,


All times are GMT -5. The time now is 11:00 AM.