✨ clearer: clear screen + scrollback buffer
This commit is contained in:
parent
144e755e41
commit
a0c20e2c21
1 changed files with 7 additions and 0 deletions
7
clearer
Executable file
7
clearer
Executable file
|
@ -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…
Add table
Add a link
Reference in a new issue