![](https://seccdn.libravatar.org/avatar/184f2936f5d39b27534f4dd7c4d15bfb.jpg?s=120&d=mm&r=g)
29 Mar
2009
29 Mar
'09
08:44
Per Jessen wrote:
David C. Rankin wrote:
Listmates,
In BASH, how can I make the output of several commands all start from the same spot on the screen?
ANSI control characters.
Uh, I meant to say ANSI escape sequences (ANSI X3.64-1979). With those you can set the colours, the cursor position etc. They're plain text, the same that are used in PS1 to turn the shell prompt red when you're root. They're also used in the init scripts for writing "done" in green etc etc. To write in red text: echo -e "\E[1;32mDavid Rankin\E[0m" To set the cursor position: ESC[24;80H /Per -- Per Jessen, Zürich (5.3°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org