You are not logged in.

#1 2018-03-30 03:30:01

justinlovewitharch
Member
Registered: 2017-01-16
Posts: 6

[SOLVED] Annoying text left-behind when browsing terminal history.

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 Downloads

When 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

#2 2018-03-30 04:23:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Annoying text left-behind when browsing terminal history.

If you revert your prompt to the default, does the behaviour persist?

PS1='[\u@\h \W]\$ '

Are you setting $TERM anywhere?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-03-31 00:41:10

justinlovewitharch
Member
Registered: 2017-01-16
Posts: 6

Re: [SOLVED] Annoying text left-behind when browsing terminal history.

yeah, the problem persist
i have

TERM="rxvt-unicode-256color"

Offline

#4 2018-03-31 00:42:19

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Annoying text left-behind when browsing terminal history.

justinlovewitharch wrote:

yeah, the problem persist
i have

TERM="rxvt-unicode-256color"

Don't do that. Forcing TERM just breaks things.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2018-03-31 00:43:28

justinlovewitharch
Member
Registered: 2017-01-16
Posts: 6

Re: [SOLVED] Annoying text left-behind when browsing terminal history.

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

Board footer

Powered by FluxBB