clearer: clear screen + scrollback buffer

master
neingeist 1 year ago
parent 144e755e41
commit a0c20e2c21

@ -0,0 +1,7 @@
#!/bin/sh
# clear screen + scrollback buffer
ansi_erase_screen='\e[2J'
ansi_erase_saved_lines='\e[3J'
ansi_move_to_home_pos='\e[H'
printf "${ansi_erase_screen}${ansi_erase_saved_lines}${ansi_move_to_home_pos}"
Loading…
Cancel
Save