You are not logged in.
Hi, i got this problem where when i browse terminal history by pressing up and down, at certain point, a text will be left behind.
Let's say i had this in my history:
cd DownloadsWhen i pressed up a few times (it seems random) i will had this:
cd Davrdude -p t13 -p usbasp .... I cant backspace it unless i clear the terminal or pressing enter.
edit: here's my bashrc
[[ $- != *i* ]] && return
set -o vi
bind '"jk":vi-movement-mode'
alias ls='ls --color=auto'
PS1='\[\e[1;38;5;255m\][\[\e[1;38;5;197m\]\u@\h\[\e[1;38;5;255m\]: \[\e[1;38;5;199m\]\W\[\e[1;38;5;213m\]\[\e[1;38;5;255m\]]\$ \e[m\]'Last edited by justinlovewitharch (2018-03-31 00:47:51)
Offline
If you revert your prompt to the default, does the behaviour persist?
PS1='[\u@\h \W]\$ 'Are you setting $TERM anywhere?
Offline
yeah, the problem persist
i have
TERM="rxvt-unicode-256color"Offline
yeah, the problem persist
i haveTERM="rxvt-unicode-256color"
Don't do that. Forcing TERM just breaks things.
Offline
umm, so i just unset it?
edit:
i unset the TERM variable, and it works, i will mark this as solved and find a way to make it permanent
edit2:
forgot to say thanks, sorry, thanks a lot!
Last edited by justinlovewitharch (2018-03-31 00:48:22)
Offline