summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorAndrew Main <zefram@users.sourceforge.net>2001-09-21 02:40:38 +0000
committerAndrew Main <zefram@users.sourceforge.net>2001-09-21 02:40:38 +0000
commitcd59ad72b6466bad25dc1fd9441d8ce30c741af0 (patch)
tree1ebf251fb9e0126961c2a6d2b4c5841db473c5d4 /Doc
parentb27659c6b38285247ca9d5ad93a7718feed7563e (diff)
downloadzsh-cd59ad72b6466bad25dc1fd9441d8ce30c741af0.tar.gz
zsh-cd59ad72b6466bad25dc1fd9441d8ce30c741af0.tar.xz
zsh-cd59ad72b6466bad25dc1fd9441d8ce30c741af0.zip
tetris game for ZLE
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/contrib.yo20
1 files changed, 20 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 4f91c7680..013a37979 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -791,6 +791,26 @@ See `Accessing On-Line Help'
 ifzman(above)\
 ifnzman((noderef(Utilities))).
 )
+item(tt(tetris))(
+Zsh was once accused of not being as complete as Emacs,
+because it lacked a Tetris game.  This function was written to
+refute this vicious slander.
+
+This function must be used as a ZLE widget:
+
+example(autoload -U tetris
+zle -N tetris
+bindkey var(keys) tetris)
+
+To start a game, execute the widget by typing the var(keys).  Whatever command
+line you were editing disappears temporarily, and your keymap is also
+temporarily replaced by the Tetris control keys.  The previous editor state
+is restored when you quit the game (by pressing `tt(q)') or when you lose.
+
+If you quit in the middle of a game, the next invocation of the tt(tetris)
+widget will continue where you left off.  If you lost, it will start a new
+game.
+)
 findex(zcalc)
 item(tt(zcalc) [ var(expression) ... ])(
 A reasonably powerful calculator based on zsh's arithmetic evaluation