Get the latest tech news

Build your own Command Line with ANSI escape codes (2016)


Everyone is used to programs printing out output in a terminal that scrolls as new text appears, but that's not all your can do: your program can color your text, move the cursor up, down, left or right, or clear portions of the screen if you are going to re-print them later. This is what lets programs like Git implement its dynamic progress indicators, and Vim or Bash implement their editors that let you modify already-displayed text without scrolling the terminal.

None

Get the Android app

Or read this on Hacker News

Read more on:

Photo of command line

command line

Photo of ANSI escape codes

ANSI escape codes

Related news:

News photo

Show HN: Terminal Phone – E2EE Walkie Talkie from the Command Line

News photo

My favorite Linux search tools make it easier to find your files - no command line needed

News photo

Show HN: Tascli, a command line based (human) task and record manager