diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-07-31 11:46:28 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-07-31 11:46:28 +0000 |
commit | f42364b4b5265406c6366246b72ad6edac72df58 (patch) | |
tree | 4802da2b413118f2400ba8f2e744a7a5a424f86c | |
parent | 5be8175b0b9a08a8f45537bb5ea572063859fe21 (diff) | |
download | rtmux-f42364b4b5265406c6366246b72ad6edac72df58.tar.gz rtmux-f42364b4b5265406c6366246b72ad6edac72df58.tar.bz2 rtmux-f42364b4b5265406c6366246b72ad6edac72df58.zip |
How to blank on lock, from Thomas Adam, slightly tweaked by me.
-rw-r--r-- | FAQ | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -239,4 +239,20 @@ set -g terminal-overrides "xterm*:kLFT5=\eOD:kRIT5=\eOC:kUP5=\eOA:kDN5=\eOB:smkx Note that this will only work in tmux 1.2 and above. -$Id: FAQ,v 1.36 2010-02-04 21:01:59 nicm Exp $ +* How can I blank the tmux window? + +GNU screen has a feature whereby it will blank the screen after a period of +inactivity. To do the same thing in tmux, use the lock-command setting, for +example (with GNU bash): + +set -g lock-command 'tput civis && read -s -n1' + +This will remove the cursor and tell the shell to quit once a key has been +pressed. For zsh, use "read -s -k1". + +In addition, it's possible to have both blanking and locking (for instance via +lock(1) or vlock(1)) by using the following: + +bind x set lock-command '/usr/bin/vlock' \; lock-client \; set lock-command 'tput civis && read -s -n1' + +$Id: FAQ,v 1.37 2010-07-31 11:46:28 nicm Exp $ |