If emacs is in terminal-mode, it seems to constrain some tools to 80 columns of output, but not all tools. E.g. The following will correctly show 85 x's:
Code:
emacs -nw --eval='(terminal-emulator "*echo only*" "echo" '"'"'("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"))'
But if you run
watch inside an emacs terminal and use it to print 85 x's, wrapping will happen at column 80, even though there is actually plenty of width. E.g.
Code:
emacs -nw --eval='(terminal-emulator "*echo nested inside watch*" "watch" '"'"'("--interval" "3600" "echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"))'
What am I missing?
At first I thought the problem was with the watch command. However, this correctly shows 85 x's without wrapping:
Code:
watch --interval 3600 echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx