From jan@swi.psy.uva.nl Tue Feb 13 10:14:35 2001
Received: from gollem.swi.psy.uva.nl (root@gollem [145.18.152.30])
	by swi.psy.uva.nl (8.11.2/8.11.2) with ESMTP id f1D9EZZ04550;
	Tue, 13 Feb 2001 10:14:35 +0100 (MET)
Received: from localhost (localhost [[UNIX: localhost]])
	by gollem.swi.psy.uva.nl (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id KAA32485;
	Tue, 13 Feb 2001 10:14:34 +0100
From: Jan Wielemaker <jan@swi.psy.uva.nl>
Organization: SWI, University of Amsterdam
To: "Richard A. O'Keefe" <ok@atlas.otago.ac.nz>, prolog@swi.psy.uva.nl,
   sunriseat28@yahoo.com
Subject: Re: [SWIPL] How to create a log file?
Date: Tue, 13 Feb 2001 10:14:01 +0100
X-Mailer: KMail [version 1.0.28]
Content-Type: text/plain
References: <200102122354.MAA20527@atlas.otago.ac.nz>
In-Reply-To: <200102122354.MAA20527@atlas.otago.ac.nz>
MIME-Version: 1.0
Message-Id: <01021310143402.32405@gollem>
Content-Transfer-Encoding: 8bit

On Tue, 13 Feb 2001, Richard A. O'Keefe wrote:
>David Yang <sunriseat28@yahoo.com> wrote:
>	[He would like to get a log-file the way log/0 did in DEC-10 Prolog.]
>
>In UNIX systems, the answer is to use the UNIX 'script' command.
>This logs all (and I mean all) characters typed at the keyboard
>or sent to the screen.  You can even use it to replay emacs sessions.
>So
>	csh1> script prolog.log
>	csh2> pl
>	.........
>	halt.
>	csh2> exit
>	csh1> 
>
>Here I have "csh1" as the prompt printed by the outer shell,
>and "csh2" as the prompt printed by the inner shell that 'script'
>starts up.
>
>What you would do on Windows I cannot imagine.  Suffer, probably.
>(We have two Telnet programs installed on the Windows machines in
>a lab I've been teaching in lately.  One of them won't let you use
>the arrow keys with Emacs, and the other one won't let you enter
>Ctrl-@ not NOHOW.  Is this a plot against telnet+emacs?  Probably.)

For these reasons SWI-Prolog has protocol/1 and noprotocol/0.  See
manual.

	--- Jan

