LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 08-13-2011, 04:47 PM   #1
cin_
Member
 
Registered: Dec 2010
Posts: 262

Rep: Reputation: 23
Terminal : Infinite Terminal Scaling


Is there a terminal that has the capacity for an infinite width?

I usually tool around in rxvt, but as it stands I am working on a project that needs to display a matrix in standard output and when it does so it wraps the lines.

I need the array to display one row per line.
With rxvt you can designate your own geometry, but the maximum allowed scale horizontally is 1000. The array only has 300 elements but each element is a 6 digit number, hence the wrapping.

The problem was solved by writing a script that fills a spreadsheet, so I can effectively review the matrix using Calc, but I do still wonder about the terminal limitations...

If no terminal has the potential for infinite width, which has the greatest?
Thanks

Last edited by cin_; 08-13-2011 at 06:44 PM. Reason: gramm`err
 
Old 08-14-2011, 11:04 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hi,

I am not sure I am following. When I start xterm like
Code:
xterm +aw
Then no line wrapping will be done. If the line is longer than the display size it will simply be cut off.
Using 'less', however, you can scroll to the right and view the rest of the line. If started with '+aw' option then less will not insert *artificial* linebreaks.
 
Old 08-15-2011, 05:47 AM   #3
cin_
Member
 
Registered: Dec 2010
Posts: 262

Original Poster
Rep: Reputation: 23
Figured

This is a fine solution.
Running with the +aw parameter and piping it through less().

Code:
# xterm +aw

# ./matrixprint | less
SCROLLABLE DISPLAYED MATRIX

Last edited by cin_; 09-28-2011 at 07:52 AM. Reason: gramm`err
 
Old 08-15-2011, 08:46 AM   #4
JonathanWilson
Member
 
Registered: Aug 2009
Location: Ilkeston, England
Distribution: ubuntu, xp, embeded
Posts: 78

Rep: Reputation: 1
If its outputting to stdout then I would have thought the best/easiest thing would be to pipe it to a file eg. "program>>outfile.txt" this can then be displayed in a text editor
 
  


Reply

Tags
geometry, maximization, terminal


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
not screen-blanking in terminal - what sets the idle timeout on monitor for terminal stardotstar Linux - Hardware 2 08-14-2011 05:46 AM
[SOLVED] Gnome terminal 2.1.0, centos 5 - how to 'find' text listed on terminal screen linuxquestions_forum_use Linux - Newbie 2 12-21-2010 08:35 PM
gnome-terminal:keyboard shortcut launches terminal with / directory default! deepclutch Linux - Desktop 1 06-21-2010 11:48 AM
Opening VLC with the terminal line so the terminal will go back to normal baldurpet Linux - Newbie 3 01-14-2009 09:57 AM
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM


All times are GMT -5. The time now is 05:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration