🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #38297

Re: Con -> RS232

#38297
From: Howard Chu
Date: Thu, 27 Apr 1989 20:25
25 lines
1895 bytes
In article <111500016@uxa.cso.uiuc.edu> sfn20715@uxa.cso.uiuc.edu writes:
>
>I have set up an ST BBS recently and am trying to get some online games
>running, specifically Larn and Nethack.  However, both of these games send
>output to the screen, not the RS232 port.  Does anyone out there have a 
>program that will redirect output from screen to the RS232?  Code fragments
>in C or assembler would be just as nice as a full fledged program.  I do have
>considerable experience programming STs in C, so dont be afraid to let
>the jargon fly!
>
>Reply as e-mail to sfn20715@uxa.cso.uiuc.edu please.
>Thanks!

My port of Larn 12.0, based on Don Kneller's port from Unix to MSDOS, used
GEMDOS calls for console I/O. According to the MWC documentation, these can
easily be redirected. I suspect they meant "by a command shell." The simple
fix for your case would be to write a small loader program that understands
how to do redirections. This program would just have to close the three
stdio descriptors, 0-2, open the AUX: device, and use Fdup or Fforce to set
0-2 to the same as the AUX handle. Then Pexec Larn from there. You could do
this in C, which would be easy, but if you're tight for memory space you
might want to code this in assembler instead.
--
 -=- PrayerMail: Send 100Mbits to holyghost@father.son[127.0.0.1]
 and You Too can have a Personal Electronic Relationship with God!
Technical Details
Message-ID: <620@stag.math.lsa.umich.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!rutgers!mailrus!um-math!hyc
References: <111500016@uxa.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!rutgers!mailrus!um-math!hyc
From: hyc@math.lsa.umich.edu (Howard Chu)
Newsgroups: comp.sys.atari.st
Subject: Re: Con -> RS232
Message-ID: <620@stag.math.lsa.umich.edu>
Date: 27 Apr 89 20:25:09 GMT
References: <111500016@uxa.cso.uiuc.edu>
Sender: usenet@math.lsa.umich.edu
Reply-To: hyc@math.lsa.umich.edu (Howard Chu)
Organization: University of Michigan Math Dept., Ann Arbor
Lines: 25
UUCP-Path: {mailrus,umix}!um-math!hyc