about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2013-04-27 17:51:40 +0200
committerMikael Magnusson <mikachu@gmail.com>2015-01-09 12:49:56 +0100
commit62b0e611ce0d3754c4397c6a66f09049e6e28d26 (patch)
tree28a92f9598ad2678fa182c64287d846d5bb2704d /Doc
parentbc55ddf364535347a24a28222874038b4b64913d (diff)
downloadzsh-62b0e611ce0d3754c4397c6a66f09049e6e28d26.tar.gz
zsh-62b0e611ce0d3754c4397c6a66f09049e6e28d26.tar.xz
zsh-62b0e611ce0d3754c4397c6a66f09049e6e28d26.zip
30568: Add tetriscurses contrib function, port of tetris to zcurses
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/contrib.yo11
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 8c5e66b17..50432432b 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -3609,6 +3609,17 @@ 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.
 )
+item(tt(tetriscurses))(
+This is a port of the above to zcurses.  The input handling is improved
+a bit so that moving a block sideways doesn't automatically advance a
+timestep, and the graphics use unicode block graphics.
+
+This version does not save the game state between invocations, and is not
+invoked as a widget, but rather as:
+
+example(autoload -U tetriscurses
+tetriscurses)
+)
 findex(zargs)
 item(tt(zargs) [ var(option) ... tt(-)tt(-) ] [ var(input) ... ] [ tt(-)tt(-) var(command) [ var(arg) ... ] ])(
 This function has a similar purpose to GNU xargs.  Instead of