I'm using minicom -w -D /dev/ttyUSB0 on Ubuntu 20.04.3 LTS to communicate through a USB to serial converter with an embedded Linux. I want to clear the screen in the same manner as reset does when using ssh or when just plain typing in a new terminal. That is: when I scroll up after clearing, I don't want old output to show up again (which is what clear would do). While in minicom, the behavior of reset is the same as clear, which is not what I want.
How do I clear the screen "properly" while in minicom?
Bonus points if it works while a command is running.
These I have tried:
- Exiting minicom with
Ctrl+A, Z, X, then reset, then entering minicom again: Works, but it's annoying to have to do this.
Ctrl+A, Z, C (labeled as "Clear Screen"): Has the same behavior as clear
Ctrl+L: Has the same behavior as clear
Ctrl+Alt+Shift+C: Doesn't work while inside minicom
tput reset: tput does not exist on the target system.
clear && printf '\e[3J': Has the same behavior as clear
clear && clear: Has the same behavior as clear
stty sane: Has no visible effect at all
printf "\033c": Positions the caret at the top left, but doesn't clear the screen, also same behavior as clear
setterm -reset: setterm does not exist on the target system.
Ctrl+Shift+K: Has no visible effect at all