LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Terminal : Infinite Terminal Scaling (http://www.linuxquestions.org/questions/linux-general-1/terminal-infinite-terminal-scaling-897162/)

cin_ 08-13-2011 04:47 PM

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

crts 08-14-2011 11:04 AM

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.

cin_ 08-15-2011 05:47 AM

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

Code:

# xterm +aw

# ./matrixprint | less
SCROLLABLE DISPLAYED MATRIX


JonathanWilson 08-15-2011 08:46 AM

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


All times are GMT -5. The time now is 01:42 AM.