LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-17-2015, 03:13 PM   #1
DiskChris
Member
 
Registered: Jul 2012
Posts: 32

Rep: Reputation: Disabled
Serial Terminal One-Line at a Time??


I was wondering if there's a way to make a serial terminal output only one line at a time until the return is pressed...I'm trying to hookup my ti-85 to the serial output of an Intel Galileo board...It has a VT-100 emulator and it works, but it gets a little confused sometimes when many lines come in at a time (9600 baud, no hardware flow control)

Last edited by DiskChris; 01-17-2015 at 03:43 PM.
 
Old 01-18-2015, 09:57 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by DiskChris View Post
I was wondering if there's a way to make a serial terminal output only one line at a time until the return is pressed...I'm trying to hookup my ti-85 to the serial output of an Intel Galileo board...It has a VT-100 emulator and it works, but it gets a little confused sometimes when many lines come in at a time (9600 baud, no hardware flow control)
I guess the problem is not where you think it is. Your little terminal probably works fine; I'm very certain it simply processes the data one character at a time, and exactly in the order they appear on the communication line.

Instead, the problem is that for standard I/O channels like stdout, Linux blends the output of all running processes into one stream. You can also see that if you start several applications from the console - their output will be scrambled together. And this mess is exactly redirected to a TTY port if you configure it that way.

Sometimes I, too, find that annoying, but I can't think of an easy way to change this.

[X] Doc CPU
 
Old 01-18-2015, 11:18 AM   #3
Doug G
Member
 
Registered: Jul 2013
Posts: 749

Rep: Reputation: Disabled
You could try xon-xoff flow control if it's supported by your system.
 
Old 01-18-2015, 08:16 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939Reputation: 3939
One possibility is to pipe all of the output to the more command (or the less command ...), requesting that it provide you with only one line at a time rather than its usual one screen at a time. This command would receive all of the stuff to displayed in its STDIN stream, then dole it out for you "one line at a time, waiting for Return to be pressed," to its STDOUT.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Detecting edges on a Linux serial port DCD line for real-time process syncing omega673 Programming 2 01-07-2015 03:18 PM
[SOLVED] Serial terminal connected to USB Serial Port on Ubuntu 12.04 809areacode Linux - General 3 07-18-2013 10:06 PM
[SOLVED] Serial Programming - Multiple interruptions for serial devices on real-time Linux. santiagocasti Programming 5 05-06-2010 04:34 AM
redirect telnet to serial line ; reverse terminal schirrmi Linux - Networking 1 04-14-2004 09:48 AM

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

All times are GMT -5. The time now is 03:25 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