Today I finally decided to reinstall OS on my home server from CentOS 5 to CentOS 7. Along with that, I decided to try tmux instead of screen that I was using for ages.
I was able to reconfigure its look&feel almost perfectly for my needs but there is still one annoying thing.
In screen, when I do some actions (for example in vi – trying to move cursor up while on first line, or press unknown hotkey, etc.) – background blinks for a moment – I suppose this is kind of warning or something like that. Anyway, I like this feature.
Now in tmux, it doesn't blink. More than that, it plays system default sound. This is really annoying. How do I change this sound to visual blinking?
I'm connecting to this server via putty from win desktop, if this matters.
Best Answer
short: in your
.tmux.conf
long: Some applications check both the
bel
andflash
terminal capabilities, and allow you to choose which will be used.tmux
does not. It reads onlybel
, so you could modify your terminal description to change thebel
to a string for flashing the display.That might work, except that while
tmux
reads terminfo data, it does not use the correspondingtputs
orputp
functions for sending terminfo data which includes time-delays. You need those delays on most terminals (including all of those imitating xterm) to implementflash
.Interesting, the terminal description for
screen
hasflash=\Eg
, but neither it or tmux do anything with that (screen uses it internally as part of its visual-bell feature). tmux likewise has a visual-bell feature, which you can set in your configuration file. That will not blink the screen, but just put a momentary alert in the status line.Further reading: