In vagrant ssh, using bash shell, using the 'clear' command results in cleared screen then with two prompts on the top line, where only one is expected or wanted. Operationally it does not matter, just visually annoying. What/where controls this behavior?
[vagrant@aws-terraform ~]$ [vagrant@aws-terraform ~]$
PS1 is [\u@\h \W]\$
SHELL is /bin/bash
Operating System: AlmaLinux 8.5 (Arctic Sphynx)
Kernel: Linux 4.18.0-348.20.1.el8_5.x86_64
Edit per request:
[vagrant@aws-terraform ~]$ type -a clear
clear is /usr/bin/clear
[vagrant@aws-terraform ~]$ echo "$PROMPT_COMMAND"
printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"
'reset' command does not have the same quirk. It results in a single prompt.