You are not logged in.

#1 2016-07-26 21:49:30

prometheus069
Member
Registered: 2016-07-26
Posts: 26

[solved]prompt flickering issues

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)


sad){ neutral:& };:
lol these smileys nowadays...

Offline

#2 2016-07-27 01:58:20

osalas
Member
From: Kaiserslautern, Germany
Registered: 2015-08-05
Posts: 25

Re: [solved]prompt flickering issues

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

#3 2016-07-27 02:03:37

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

Re: [solved]prompt flickering issues

prometheus069 wrote:
export PS1="\e[1;32m[\u@\h \W]\e[1;34m\$\e[m "

You haven't closed any of your escapes...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2016-07-27 18:56:01

prometheus069
Member
Registered: 2016-07-26
Posts: 26

Re: [solved]prompt flickering issues

osalas wrote:

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 big_smile

jasonwryan wrote:

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 big_smile changing prompt back to default stops the problem with these weird 18 character thing. what is missing?


thanks for the fast help wink

Last edited by prometheus069 (2016-07-27 18:59:34)


sad){ neutral:& };:
lol these smileys nowadays...

Offline

#5 2016-07-27 18:59:27

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

Re: [solved]prompt flickering issues

You have opened colour escapes, e.g., \e[1;32m that have no corresponding closing escape (\]).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2016-07-27 19:27:40

prometheus069
Member
Registered: 2016-07-26
Posts: 26

Re: [solved]prompt flickering issues

jasonwryan wrote:

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 big_smile

[user@machine]$ *scrolls history up*
[ command_from_history


sad){ neutral:& };:
lol these smileys nowadays...

Offline

#7 2016-07-27 19:42:55

prometheus069
Member
Registered: 2016-07-26
Posts: 26

Re: [solved]prompt flickering issues

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)


sad){ neutral:& };:
lol these smileys nowadays...

Offline

#8 2016-07-27 19:47:04

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,810

Re: [solved]prompt flickering issues

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

#9 2016-07-27 21:46:09

prometheus069
Member
Registered: 2016-07-26
Posts: 26

Re: [solved]prompt flickering issues

alphaniner wrote:

Nice fork bomb signature.

u da real mvp!


sad){ neutral:& };:
lol these smileys nowadays...

Offline

#10 2016-07-27 22:47:42

prometheus069
Member
Registered: 2016-07-26
Posts: 26

Re: [solved]prompt flickering issues

okay, thats not good.
this flickering stuff has survived.

still need help.


sad){ neutral:& };:
lol these smileys nowadays...

Offline

#11 2016-07-27 22:53:22

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

Re: [solved]prompt flickering issues

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?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#12 2016-07-27 23:04:53

prometheus069
Member
Registered: 2016-07-26
Posts: 26

Re: [solved]prompt flickering issues

jasonwryan wrote:

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


sad){ neutral:& };:
lol these smileys nowadays...

Offline

#13 2016-07-27 23:09:13

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

Re: [solved]prompt flickering issues

Remove archey and retest.

Your new prompt works fine for me.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#14 2016-07-27 23:21:56

prometheus069
Member
Registered: 2016-07-26
Posts: 26

Re: [solved]prompt flickering issues

jasonwryan wrote:

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.


sad){ neutral:& };:
lol these smileys nowadays...

Offline

#15 2016-07-27 23:25:22

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

Re: [solved]prompt flickering issues

Did you remove archey? There was a thread here eariler about it breaking...

Make sure it isn't a terminal bell.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#16 2016-07-27 23:49:30

prometheus069
Member
Registered: 2016-07-26
Posts: 26

Re: [solved]prompt flickering issues

jasonwryan wrote:

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.


sad){ neutral:& };:
lol these smileys nowadays...

Offline

#17 2016-07-28 00:03:14

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

Re: [solved]prompt flickering issues

Not really: I see a lot of posts and I don't keep track of most of them. Searching may turn it up.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#18 2016-07-28 00:53:24

prometheus069
Member
Registered: 2016-07-26
Posts: 26

Re: [solved]prompt flickering issues

allright


sad){ neutral:& };:
lol these smileys nowadays...

Offline

#19 2016-08-09 20:56:00

prometheus069
Member
Registered: 2016-07-26
Posts: 26

Re: [solved]prompt flickering issues

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 wink

Last edited by prometheus069 (2016-08-09 20:57:03)


sad){ neutral:& };:
lol these smileys nowadays...

Offline

Board footer

Powered by FluxBB