LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-11-2016, 02:21 PM   #1
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Rep: Reputation: 21
set newline displaying in Kermit and Minicom


Hello,
with kermit I connect to a machine that sends a newline consisting of just the character 0Ah (LF). This is the general line break used in nix-systems.
The issue is: Kermit requires 0Dh/0Ah (CRLF) in order to properly display a linebreak. If Kermit receives just a LF the output is something like:

line_1
......line_2
............line_3

and so on. I tried the option SET TERMINAL CR-DISPLAY CRLF/NORMAL but no change. I could not find such a switch in Minicom as well. I always thought, a classical UNIX tool like Kermit or Minicom displays a received newline in its native manner.
So what am I doing wrong ? Thanks !

Last edited by Mario Blunk; 08-11-2016 at 02:22 PM. Reason: formatting error
 
Old 08-13-2016, 11:55 AM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Are you sure that the device is only returning LF at the end of a line? In the example you give, line_1, line_2 and line_3 are all on new lines, apart from the dots. What do those dots represent?
 
Old 08-13-2016, 02:51 PM   #3
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Original Poster
Rep: Reputation: 21
The device sends a 0Ah (LF) at the end of the line, definitely. The dots in my example are a just replacements for space characters in order to shove the line_2 and line_3 words to the right. The message text editor "optimizes" spaces "away". The column where one line ends (plus one) is the column where the next line starts. Because the CR character is missing the output in Kermit or Minicom look this way.
So the basic question is: How do I get Minicom or Kermit to display a UNIX-linebreak properly ?
 
Old 08-13-2016, 03:19 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Which version of Minicom are you using?

https://lists.alioth.debian.org/pipe...12/001178.html

I can't see on the home site (https://alioth.debian.org/projects/minicom) which version, if any, included the commit. You should contact Jeremy and/or Adam (both addresses at the first link) and ask them. You can ask them about Kermit while you're at it.

Let us know how you get on.
 
Old 08-14-2016, 11:27 AM   #5
Mario Blunk
Member
 
Registered: Dec 2008
Location: Wild Eastern Germany
Distribution: OpenSuse Tumbleweed
Posts: 131

Original Poster
Rep: Reputation: 21
My Minicom is version 2.1.
My Kermit is version C-Kermit 9.0.302

Strange thing is, that both do have the same issue.
 
  


Reply



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
transfer a file from minicom to kermit gangadhar Linux - Newbie 6 11-17-2011 11:17 PM
How do I send files in minicom through kermit? wczimmerman Linux - Networking 6 11-16-2011 09:10 AM
transfer a file from minicom to kermit gangadhar LinuxQuestions.org Member Intro 1 11-15-2011 12:01 AM
Receiving kermit files with minicom DaneG Linux - Newbie 1 06-07-2009 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:01 PM.

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