multi-line strings in the shell
Posted Dec 15, 2004 11:37 UTC (Wed) by Danimalito
In reply to: A look at Xfce 4.2
Parent article: A look at Xfce 4.2
If you use 'bash', try adding
shopt -s checkwinsize
This forces it to check how many lines and columns your terminal emulator is set to, every time it displays a new prompt. It normally does this anyways, as soon as the terminal window is resized (through the SIGWINCH signal). However, for various reasons, this signal is not always properly propagated to the shell, and it gets confused where to place the cursor in for example input that spans several lines.
to post comments)