LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-21-2005, 12:14 PM   #1
k1mgy
Member
 
Registered: Jul 2004
Posts: 40

Rep: Reputation: 15
extra linefeeds - terminal


I feel so dumb asking this question but I hope I will be excused based on the fact that I've done a lot of reading about termcap and the linux terminal in general and cannot seem to find even a hint as to what's going on.

System: embedded unit (axis etrax) running kernel 2.4.26. Shell is ash (busybox implementation of bash).

Issue: Extra linefeed is interpreted by host system when sending CRLF.

There are two ways I access the embedded device.

1 - through the serial (root) console.
2 - through a telnet connection

Method 1: I use terraterm for the serial connection. It has a "new line" setting.

New Line Result
SEND CR Single Linefeed
SEND CRLF Double linefeeds

Method 2: I use putty for a telnet (port 23) connection to the embedded box. It has a setting "Return key sends telnet new line instead of ^M (chr 13, or CR).

Send New Line Result
ON (send LF) Double linefeeds
OFF (send ^M) Single linefeed

Naturally if I add a linefeed (the first setting) I'll get two on the host.

What I don't understand is that, on for example one of my Fedora Core 3 boxes, using the same putty connection, I get a single LF regardless of this setting! It seems that somehow the termcap file perhaps is stripping out the CR or is NOT converting it to a LF, whereas on the embedded system, something is. One problem: the termcap files used appear identical to me (using the linux terminal in each).

Also, since updating busybox and basically rebuilding the kernel, etc., my embedded system now exhibits this double linefeed problem where it did not before.

So, where to begin? I've read about termcap, bash (but I don't think this is where the issue is handled) and terminals in general.

It's not a big deal as I can get around it with the putty setting, but when using a dos command shell and running windows telnet the only way to work things is to send a manual chr 010 (alt keyboard trick).

Suggestions (and scorn) gleefully accepted.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
How to launch an app in terminal, & keep it running after I close terminal? kornerr Linux - General 7 06-24-2006 05:54 PM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 03:59 AM
Opening a new terminal from Fluxbox menu (or another terminal) hallamigo Linux - Software 1 05-02-2004 03:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:49 AM.

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