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

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?

crts 08-14-2011 11:04 AM


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 05: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 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 06:38 PM.