dirty-helpers/clearer

8 lines
211 B
Text
Raw Normal View History

#!/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}"