You are not logged in.
Pages: 1
Hey there,
i have problem and cant determine where it comes from.
ive got some "prompt flickering (described below)" when im running my dwm and the xfce4-terminal with bash.
the weird flickering occurs sometimes when i have a cli application opened and closed again.
this happens by closing man pages too. what i see is , for example, the man page and my terminal prompt switching every second until i press return.
notice:
there are some chars "frozen" when i do the reverse-i-search or scroll up in my history. even if i try to delete them, nothing happens.
my cursor dont cares. if i press return bash handles it like ive nothing written in it. it looks like that :
[my_crazy_custom_prompt]$:i-search)`cd': cd /tmp
[my_crazy_custom_prompt]$:"mylastcommandbutremovedwithbackspaces"mmand -i --really --want --to --do
command -i --really --want --to --do : returned succesfully 0
[my_crazy_custom_prompt]$:
here is my .bashrc where i made my prompt:
#
# ~/.bashrc
#[[ $- != *i* ]] && return
export PS1="\e[1;32m[\u@\h \W]\e[1;34m\$\e[m "
HISTCONTROL=ignoreboth
If you need more informations about some configs or logs, simply ask for it.
This problem occured 3 weeks ago. Can anyone help me where it could come from?
Last edited by prometheus069 (2016-08-09 21:54:10)
){ :& };:
lol these smileys nowadays...
Offline
Are you using a DE? What terminal are you using? any composition maybe?
Try pressing ALT+F2 to see in a purely terminal eviroment if the same happens.
Offline
export PS1="\e[1;32m[\u@\h \W]\e[1;34m\$\e[m "
You haven't closed any of your escapes...
Offline
Are you using a DE? What terminal are you using? any composition maybe?
Try pressing ALT+F2 to see in a purely terminal eviroment if the same happens.
No DE, just a wm which starts with "exec dwm" in .xinitrc.
xfce4-terminal. No compositing manager active.
alt+f2, dont know what it exactly does, looks like a reset command. i try it out. first use of this keybind stops mocp
You haven't closed any of your escapes...
i could be wrong, but shouldnt be something like that "\e[xx;xm" (where x <- [0..10]) an ascii escape sequence for colorising output? could you be more specific by the meaning of "closing the escape sequences"?
EDIT: HA, you, my dear friend are possibly right changing prompt back to default stops the problem with these weird 18 character thing. what is missing?
thanks for the fast help
Last edited by prometheus069 (2016-07-27 18:59:34)
){ :& };:
lol these smileys nowadays...
Offline
You have opened colour escapes, e.g., \e[1;32m that have no corresponding closing escape (\]).
Offline
You have opened colour escapes, e.g., \e[1;32m that have no corresponding closing escape (\]).
thank you. i made:
export PS1="\[\033[1;32m[\u@\h \W]\]\[\033[1;34m$\]\[\033[m\] "
# | sequence | | sequence | | seq |
still broken after scrolling throug history, now the 18chars_problem is a 1char_problem.
even if use the esc sequence once: \[\033[1;32m....blabla\]
my prompt looks like: [
thats it
[user@machine]$ *scrolls history up*
[ command_from_history
){ :& };:
lol these smileys nowadays...
Offline
okay, because of reasons this works the best:
export PS1="\[\033[1;32m\][\u@\h \W]\[\033[1;34m\]$ \[\033[m\]"
thank you jasonwryan!
Last edited by prometheus069 (2016-07-27 19:44:04)
){ :& };:
lol these smileys nowadays...
Offline
Nice fork bomb signature.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Nice fork bomb signature.
u da real mvp!
){ :& };:
lol these smileys nowadays...
Offline
okay, thats not good.
this flickering stuff has survived.
still need help.
){ :& };:
lol these smileys nowadays...
Offline
Please paste your full shell initialisation files: .bashrc, .bash_profile (or .profile, whatever you use), etc.
Also, is this confined to the terminal? What video card and driver are you using?
Offline
Please paste your full shell initialisation files: .bashrc, .bash_profile (or .profile, whatever you use), etc.
Also, is this confined to the terminal? What video card and driver are you using?
xf86-video-intel. its not happen on tty{1,2,3,4,5,6} until i start X.
.bashrc
#
# ~/.bashrc
#[[ $- != *i* ]] && return
export PS1="\[\033[1;32m\][\u@\h \W]\[\033[1;34m\]$ \[\033[m\]"
alias ls='ls -h --color=auto'
HISTCONTROL=ignoreboth
alias archey="archey3"
alias grep="grep --color=auto"archey
.bash_profile
# ~/.bash_profile
#[[ -f ~/.bashrc ]] && . ~/.bashrc
){ :& };:
lol these smileys nowadays...
Offline
Remove archey and retest.
Your new prompt works fine for me.
Offline
Remove archey and retest.
Your new prompt works fine for me.
the problem is, that it occurs once in while. sometimes 4 times in a row. sometimes 10 hours not once.
the prompt is at least working. this 18/1character thing is done by your hint.
i think the problems depends on bash or xfce-terminal. possibly xfce4-terminal because i use bash in ttyX and i noticed nothing of this problem. i can try urxvt for a while to see if it occurs there too. if not, we can say for sure it depends on xfce4-terminal.
remember: no DE, only dwm. its not related to xfce4 for the case you dont know it.
){ :& };:
lol these smileys nowadays...
Offline
Did you remove archey? There was a thread here eariler about it breaking...
Make sure it isn't a terminal bell.
Offline
Did you remove archey? There was a thread here eariler about it breaking...
Make sure it isn't a terminal bell.
i did. at the time it seems okay. if there is in, lets say 3 days, no change we can say that it helps...
can you show me that post? it would be interesting for me.
){ :& };:
lol these smileys nowadays...
Offline
Not really: I see a lot of posts and I don't keep track of most of them. Searching may turn it up.
Offline
allright
){ :& };:
lol these smileys nowadays...
Offline
okay, here i am again.
after a few weeks it seems that it works properly. i would recommend that fix to all of you who have similar problems.
for everyone else with this problem:
remove stuff like archey or something like that and take a look at your customized prompt. thats it
Last edited by prometheus069 (2016-08-09 20:57:03)
){ :& };:
lol these smileys nowadays...
Offline
Pages: 1