Finally found that “demo”:
-
https://github.com/asyncly/cdir/blob/223fe0039fade4fad2bb08c2f7affac3bdcf2f89/cdir.js#L24
-
http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html
-
http://ascii-table.com/ansi-escape-sequences-vt-100.php
-
Position the Cursor:
\u001b[<L>;<C>Hor\u001b[<L>;<C>f(puts the cursor at line L and column C) -
Move the cursor up N lines:
\u001b[<N>A -
Move the cursor down N lines:
\u001b[<N>B -
Move the cursor forward N columns:
\u001b[<N>C -
Move the cursor backward N columns:
\u001b[<N>D -
Clear the screen, move to (0,0):
\u001b[2J -
Erase to end of line:
\u001b[K -
Save cursor position:
\u001b[s -
Restore cursor position:
\u001b[u