views:

114

answers:

3

I really like gnu screen but there is a problem in my environment when I use it.

Examle:

username@domain:/var/www$ l
Display all 130 possibilities? (y or n)

when you click [Tab] to perform autocompletion there is a screen flashing for a very short period of time(looks like white screen but I can see it for a very-very short time).

There isn't any problems with that when I execute the same action in normal/non-screen environment.

This is what my .screenrc looks like:

attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"
term screen-256color-bce
+1  A: 

The shell "prints" the bell character when it asks "Display all possibilities?" Normally this would beep but something is translating it to a screen flash.

As a wild guess, try changing the termcapinfo line to

termcapinfo xterm 'Co#256:AF=\E[38;5;%dm'

That removes the AB section, which I think means "audio bell".

Daniel Newby
+5  A: 

add set bell-style none to the readline init file, ~/.inputrc

bell-style

Controls what happens when Readline wants to ring the terminal bell. If set to ‘none’, Readline never rings the bell. If set to ‘visible’, Readline uses a visible bell if one is available. If set to ‘audible’ (the default), Readline attempts to ring the terminal's bell.the terminal's bell.

http://www.gnu.org/software/bash/manual/bashref.html#Readline-Init-File

[edit: thanks Fedyashev Nikita]

shavenwarthog
I had the same problem but the only difference is that Readline init file is stored in ~/.inputrc file(at least in Ubuntu). So I've added it there and now it works fine! thank you
Fedyashev Nikita
+2  A: 

Just add vbell "off" to your .screenrc

Misha van Tol