On Fri, Jul 30, 2010 at 08:18:47AM +0100, Nicholas Marriott wrote:
> You could write an FAQ entry if you like :-).

Something like the diff attached?  ;)

-- Thomas Adam
? blank
? foo.patch
? lock-clients.patch
? lock-nm.patch
? multi-colour-statusbar2.patch
? tmux-blank-window-faq.patch
? tmux-no-fork.patch
Index: FAQ
===================================================================
RCS file: /cvsroot/tmux/tmux/FAQ,v
retrieving revision 1.36
diff -u -r1.36 FAQ
--- FAQ	4 Feb 2010 21:01:59 -0000	1.36
+++ FAQ	30 Jul 2010 08:19:57 -0000
@@ -239,4 +239,23 @@
 
 Note that this will only work in tmux 1.2 and above.
 
+* How can I blank the tmux window?
+
+GNU Screen has a feature whereby it will blank the screen after a period of
+inactivity.  Tmux can do the same thing by using the lock-command setting:
+
+set -g lock-command 'tput civis && read -s -n1'
+
+Which will remove the cursor, and tell the shell to quit once a key has been
+pressed.
+
+In addition, it's possible to have both blanking by default, and locking in
+the usual way (via lock(1) or vlock(1) for instance) by using the following:
+
+bind x set lock-command '/usr/bin/vlock' \; lock-client \; set lock-command 'tput civis && read -s -n1'
+
+Note that the read builtin above is Bourne-specific.  Zsh users will have to use:
+
+read -s -k 1
+
 $Id: FAQ,v 1.36 2010/02/04 21:01:59 nicm Exp $
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to