Clear a terminal screen for real

前端 未结 11 1481
悲哀的现实
悲哀的现实 2020-11-30 15:48

Using the clear command on the terminal only fools the user into thinking the screen has been cleared...you can still see output from the previous commands when

11条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 16:22

    My favourite human friendly command for this is:

    reset
    

    Tested on xterm and VT100. It also helps after an abnormal program termination. Keeps the command buffer, so up-arrow will cycle through previous commands.

    cheers :D

提交回复
热议问题