From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5115 invoked from network); 3 Sep 2001 17:14:45 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Sep 2001 17:14:45 -0000 Received: (qmail 17573 invoked by alias); 3 Sep 2001 17:14:39 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15737 Received: (qmail 17562 invoked from network); 3 Sep 2001 17:14:37 -0000 From: Bart Schaefer Message-Id: <1010903171420.ZM11666@candle.brasslantern.com> Date: Mon, 3 Sep 2001 17:14:20 +0000 In-Reply-To: Comments: In reply to Zefram "Tetris" (Sep 3, 1:03am) References: X-Mailer: Z-Mail (5.0.0 30July97) To: Zefram , zsh-workers@sunsite.dk Subject: Re: Tetris MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 3, 1:03am, Zefram wrote: } } Improvements are welcome. You're left-handed, aren't you. For some reason the 's' key to rotate is not working for me. I end up (I think, I'm not sure) in vi insert mode when I press 's'. Moving blocks right and left with 'a' and 'd' works fine. A little more error checking would be nice. --- tetris.0 Mon Sep 3 09:38:55 2001 +++ tetris Mon Sep 3 10:07:29 2001 @@ -27,6 +27,10 @@ zle -N tetris function tetris { emulate -L zsh + if ! zle ; then + print -u2 "Use M-x tetris RET to play tetris." + return 1 + fi tetris_save_buffer=$BUFFER tetris_save_cursor=$CURSOR local i -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net