Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is very strange, could you describe he problem more? Also, does the contents of an ncurses app (vim, less, emacs) stay after you close the program?


When I use less in a tmux or screen session to view /var/log/syslog et al, when I type -S to chop long lines it continues to wrap the line instead of chop it.

No the screen is cleared after quitting.

I have TERM set to xterm-256colors FWIW.


What does "tput cols" say in and out screen/tmux? It's possible less doesn't know the proper width of the terminal.


80 cols, which is correct. Less seems to be fine when not in a tmux session.

https://asciinema.org/a/9601


Odd, I'm doing that daily at work without any issue. (tmux 1.8.x, putty, screen-256colors I believe)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: