-   Linux - General (
-   -   Terminal : Infinite Terminal Scaling (

cin_ 08-13-2011 05: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?

crts 08-14-2011 12:04 PM


I am not sure I am following. When I start xterm like

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 06:47 AM

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


# xterm +aw

# ./matrixprint | less

JonathanWilson 08-15-2011 09: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 12:57 PM.