🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10805

RE: Stevie chokes when being run.

#10805
From: Huver
Date: Tue, 03 Jan 1989 00:07
35 lines
1176 bytes
There were some comments about how the Stevie editor doesn't start up
right when `run' command is used.  In Stevie, the `amiga.c' utilizes
Input() and IsInteractive() functions as a guide to determine whether it
is running interactively, from the current window (the one CLI or AmigaShell
uses).

This is obviously not a good choice.  If we use the example below:

	/* test.c */

	#include <exec/types.h>
	#include <libraries/dosextens.h>

	main()
	{
		struct FileHandle *mytty, *Input();
		BOOL   type, IsInteractive();

		mytty = Input();
		type  = IsInteractive(mytty);
		printf("type = %d\n", type);
	}

One would get (with both CLI and AmigaShell):

1> test			1> run test			1> test <test.c
type = -1		[CLI 2]				type = 0
			type = 0

A wiser choice is definitely to have Stevie open its own WB window and
run from there.
-----
 huver	     uunet!amgraf!huver
 816-474.4797
Technical Details
Message-ID: <214@amgraf.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!amgraf!huver

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!amgraf!huver
From: huver@amgraf.UUCP (Huver)
Newsgroups: comp.sys.amiga.tech
Subject: RE: Stevie chokes when being run.
Message-ID: <214@amgraf.UUCP>
Date: 3 Jan 89 00:07:03 GMT
Organization: Amgraf Inc.,  Kansas City
Lines: 35