Hacker News new | ask | show | jobs
by epage 746 days ago
> `\x1bM` (Reverse Index) to move the cursor up a single line (repeated n times), and then `\x1b[J` to clear the screen below the cursor position. All of these are sequences defined at least since the VT220, probably the VT100.

For whatever reason, the people I'm collaborating with have the impression these aren't universal enough. And of course termcaps is out of vogue.

1 comments

Simultaneously caring about terminals that don't support basic movement but also refusing to use termcap seems like an unfortunate combination :(.