![]() ![]() # (Needed only on macOS, where /usr/bin/clear doesn't do the latter.) # Clears the terminal screen *and the scrollback buffer*. You can easily wrap this call in a shell script for use from any shell: create a file named, say, cclear, in a directory listed in your system's PATH variable, then make it executable with chmod a x then save the following content to it: #!/bin/bash ![]() Print the following ANSI control sequence: '\e[2J\e[3J\e[H' ( \e represents the ESC char. NET's ::Clear() clear the scrollback buffer - they all clear just one screenful. Unfortunately, neither /usr/bin/clear nor PowerShell's Clear-Host ( cls) nor.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |