[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

How to get ZigZag working on Win32.



---------- Forwarded Message ----------

From:   Andy McFarland, INTERNET:andy@xxxxxxxxxxxxxxxxxxxxxxx
TO:     (unknown), INTERNET:zigzag.desk@xxxxxxxxxx
DATE:   1/17/99 11:38 AM

RE:     How to get ZigZag working on Win32.

Sender: andy@xxxxxxxxxxxxxxxxxxxxxxx
Received: from skekTek.glasswings.com.au (skekTek.glasswings.com.au
[203.14.59.250])
        by hpamgaaa.compuserve.com (8.8.8/8.8.8/HP-1.0) with SMTP id
OAA10582
        for <75231.762@xxxxxxxxxxxxxx>; Sun, 17 Jan 1999 14:38:34 -0500
(EST)
Received: (qmail 4354 invoked by alias); 17 Jan 1999 19:45:18 -0000
Delivered-To: alias-xanadu-net-marlene@xxxxxxxxxx
Received: (qmail 4343 invoked by alias); 17 Jan 1999 19:45:17 -0000
Delivered-To: alias-xanadu-net-zigzag.desk@xxxxxxxxxx
Received: (qmail 4340 invoked from network); 17 Jan 1999 19:45:16 -0000
Received: from post-11.mail.demon.net (HELO post.mail.demon.net)
(194.217.242.40)
  by skektek.glasswings.com.au with SMTP; 17 Jan 1999 19:45:16 -0000
Received: from [212.228.107.86] (helo=eternity-project.org.uk)
        by post.mail.demon.net with esmtp (Exim 2.10 #2)
        id 101y1Y-0001SH-00
        for zigzag.desk@xxxxxxxxxx; Sun, 17 Jan 1999 19:38:16 +0000
Message-ID: <36A23BFD.D4B8ACCC@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 17 Jan 1999 19:37:33 +0000
From: Andy McFarland <andy@xxxxxxxxxxxxxxxxxxxxxxx>
Organization: The Eternity Project
X-Mailer: Mozilla 4.5 [en] (Win95; I)
X-Accept-Language: en
MIME-Version: 1.0
To: zigzag.desk@xxxxxxxxxx
Subject: How to get ZigZag working on Win32.
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

(This is for Xanni but I couldn't find an address anywhere.)

Hi,

Thanks for ZigZag.

Below are some simple steps for a fairly quick hack to get Zigzag
working on a box running Win32.
It's messy but it works.  It'll tide us over until someone ports the
display/input routines to 
Win32::Console or something more cross platform.

Feel free to quote this wherever or lose it completely.  I don't mind.

Andy. (andy@xxxxxxxxxxxxxxxxxxxxxxx)

*************

Getting ZigZag to work with Win32
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This should be easier than this but like most Windows users I don't have
a C compiler or a copies of Diff/Patch.

Get your copy of ZigZag [1].  These changes work with version 0.66. 
They might not work with later versions without some modification.

Get the Gurusamy Sarathy build of perl [2]. It comes with a (mostly
working) version of the curses module.

Get the Gurusamy Sarathy build of DB_File [3].

Changes to ZigZag.pm
^^^^^^^^^^^^^^^^^^^^
Your build of perl doesn't come with the POSIX module so you need to
comment out the line 'use POSIX;'.
Add a line 'use IO::Seekable;'

Changes to ZigZag
^^^^^^^^^^^^^^^^^
Comment out the line 'use POSIX;'
Replace the two instances of 'display_status_draw(NULL);' with
'display_status_draw("");'.
Replace the line 'my $TEMP_FILE = "/tmp/zigzag-$<-$^T";' with 'my
$TEMP_FILE = "c:\\temp\\zigzag-$<-$^T";' or similar depending on your
temp directory.
At the start of the main loop find the two lines:-

        my $key_pressed = input_get_any();
        my $i;

and replace them with...

        my $key_pressed = "";
        my $i;
        for ($i = 0; $i <= $#Window_Dirty; $i++) { display_draw_window($i,
defined($key_pressed)); }
        $key_pressed = input_get_any(); # I think this blocks!

In the sub 'display_draw_window' replace the line 'erase($win) unless
$preview;' with 'erase($win);'

In the sub 'display_draw_quad' comment out the line 'return if
$preview;'

Running ZigZag
^^^^^^^^^^^^^^
Before you run ZigZag you need to 'set EDITOR=edit' or similar at the
command prompt which will use the standard text editor to edit cells.


Happy Zigging.

Andy. (andy@xxxxxxxxxxxxxxxxxxxxxxx)

[1] ftp://ftp.xanadu.net/pub/Zigzag/
[2]
ftp://ftp.iguide.com/pub/mirrors/packages/perl/CPAN/ports/win95/Standard/x8
6/perl5.00402-bindist04-bc.zip
[3]
ftp://ftp.iguide.com/pub/mirrors/packages/perl/CPAN/ports/win95/Standard/x8
6/DB_File-1.54-bin-v3-x86-mswin32-bc.zip