ANSI Tips n' Tricks


[:  :]

Oneliner to clear the screen

echo -ne "\x1b\x5b\x48\x1b\x5b\x32\x4a\x1b\x5b\x33\x4a"

As base64

base64 -d <<< G1tIG1syShtbM0o=

This can also clear the screen

echo -ne "\x1bc"

This clears the screen and puts the cursor at the top left

base64 -d <<< G2N1

This clears and puts U’s til the end of the console line

base64 -d <<< G2NVG1s5OTli

TODO: Add notes from other sources


Tags
Ansi · Ascii Art · Notes · Shell · Todo