Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-09-2009, 04:53 AM   #1
LQ Newbie
Registered: Feb 2009
Posts: 29

Rep: Reputation: 15
Post 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?
Old 07-09-2009, 06:14 AM   #2
LQ Newbie
Registered: Feb 2009
Posts: 29

Original Poster
Rep: Reputation: 15
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.

Last edited by kewl; 07-09-2009 at 06:17 AM.
Old 03-22-2010, 11:27 AM   #3
LQ Newbie
Registered: Mar 2010
Posts: 5

Rep: Reputation: 0
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,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
grep detecting carriage return, how ? Grafbak Programming 22 01-13-2010 01:19 PM
workaround for C++ printf carriage return idc12 Programming 2 09-11-2006 12:13 PM
Inserting a carriage return in awk legtester Linux - General 1 08-17-2003 05:29 PM
unescaping a carriage return in perl acid_kewpie Programming 10 09-20-2002 02:20 PM
pppd...carriage return?!? icyfire Linux - Software 1 02-14-2002 07:07 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration