I saw this demo once that printed out a paragraph of text (like you\'d get when typing some-command --help
), and it then jumped back up to a couple keywords in
If you are working in Mac OX X, I believe the program Eddie does something like "edit terminal output after it's already been printed". (see "Eddie (text editor) at Wikipedia" ).
Under the file menu, choose "New" and then under "Settings/Document Settings..." choose "Shell Window". After that try a couple of unix commands: date, ls, cal, etc. Then put your cursor and edit these.
I would have tried with Node but I could not install it (Node) under Mac OS X 10.5.8.
Finally found that "demo":
http://ascii-table.com/ansi-escape-sequences-vt-100.php
Position the Cursor: \033[<L>;<C>H
or \033[<L>;<C>f
(puts the cursor at line L and column C)
\033[<N>A
\033[<N>B
\033[<N>C
\033[<N>D
\033[2J
\033[K
\033[s
\033[u