Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Are there any replacements for that allow the line wrapping to be turned off? By turned off I mean in such a way as to cause a horizontal scroll bar to appear?

I've seen proposed solutions that pipe commands through less and the like, but these are not helpful.


migration rejected from Jan 4 at 16:29

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by random Jan 4 at 16:29

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking product, service, or learning material recommendations are off-topic because they become outdated quickly and attract opinion-based answers. Instead, describe your situation and the specific problem you're trying to solve. Share your research. Here are a few suggestions on how to properly ask this type of question." – random
If this question can be reworded to fit the rules in the help center, please edit the question.

What have you tried so far? iTerm is a replacement terminal, for example (I don't know whether it has the feature you want). – Greg Hewgill Nov 15 '10 at 22:53
I have never seen a Unix terminal do this. – mikerobi Nov 15 '10 at 22:53
this question should better be asked on – CharlesB Nov 16 '10 at 0:54
I don't understand why this is attractive. I'd hate to have to scroll horizontally across many screen widths instead of having monster command lines broken across multiple lines. – ak2 Nov 16 '10 at 10:52
@ak2: I can see that it might be useful if you're looking at long lines of columns of data. There might be better ways of doing that, though. It would be interesting to know why less is not helpful. – Dennis Williamson Nov 16 '10 at 15:34
up vote 5 down vote accepted

I downloaded 'Terminator', ran it, tried to cat a wide file, and a (working) horizontal scroll bar appeared:

alt text

That window is obviously narrower than 80 columns. Does it still work when it's 80 columns or wider and the text is wider than that? What do stty size, tput cols and echo $COLUMNS say? – Dennis Williamson Nov 16 '10 at 6:36
@Dennis - yes it does appear to work the same way for wide terminals, in a simple test case at least. When I opened the file in 'vi' though, the line wrapped at 170 chars: I had opened and manually resized the window to 170-chars wide. stty size reported '46 170', tput cols '170'. In bash $COLUMNS was 170. These stayed the same even when a wider file was displayed (using cat) and the scroll bar had appeared. – martin clayton Nov 16 '10 at 6:50
Perfect. This is exactly what I was looking for. I put in every conceivable search query into Google and Terminator never came up. – DataSurfer Dec 2 '10 at 2:54

Not a replacement but you can use tput to control line wrapping:

tput rmam

disables line wrapping.

tput smam

enables line wrapping.


Not the answer you're looking for? Browse other questions tagged .