home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!seismo!darwin.sura.net!spool.mu.edu!agate!doc.ic.ac.uk!uknet!edcastle!damianj
- From: damianj@castle.ed.ac.uk (Damian Jackson)
- Newsgroups: talk.bizarre
- Subject: Re: Frustrated newbie: how do I emulate a terminal programatically?
- Message-ID: <28170@castle.ed.ac.uk>
- Date: 15 Nov 92 15:35:36 GMT
- References: <1992Nov14.235148.17845@ousrvr.oulu.fi>
- Organization: Edinburgh University
- Lines: 50
-
- se15@pius (Algorhythm) writes:
-
- >I've been playing a multi user dungeon for a while now, and it's
- >fiendishly difficult and time consuming! I want to write a program that
- >will play this game on my behalf :-), so I can come back after a week and
- >my character will have progressed a few levels. The idea I had in mind was
- >to write a C program to emulate a terminal replacing the normal keyboard
- >input with input generated by my program. This would then log on to the
- >mud, and play my character involving parsing the mud's responses, and
- >deciding what commands to send the mud.
-
- >So now the problem: I've been searching the on-line unix manual for help
- >with terminal emulation, but nothing seems to work. Using the "system"
- >command from C, I can telnet to the mud, but after this, the input reverts
- >to keyboard, and my program doesn't resume until I manually log off the
- >mud.I've tried opening tty devices, and pty devices and writing to them
- >but this doesn't seem to execute the commands.
-
- >As you can see, my knowlege of unix is pretty hopeless.. I hope no one is
- >offended.. :-)
-
- >Please mail me if you can help.
- >Thanks for reading..
-
- >Paul
-
- I've been reading news and posting articles for a while now, and it's
- fiendishly difficult and time consuming! I want to write a program that
- will deal with news on my behalf :-), so I can come back after a week and
- my net.status will have progressed a few levels. The idea I had in mind was
- to write a C program to emulate a terminal replacing the normal keyboard
- input with input generated by my program. This would then execute `nn'
- and play my character involving parsing other peoples' responses, and
- deciding what posts to send or save.
-
- So now the problem: I've been searching the on-line unix manual for help
- with terminal emulation, but nothing seems to work. Using the "system"
- command from C, I can execute `nn', but after this, the input reverts
- to keyboard, and my program doesn't resume until I manually quit `nn'.
- I've tried opening tty devices, and pty devices and writing to them
- but this doesn't seem to execute the commands.
-
- As you can see, my knowlege of unix is pretty hopeless.. I hope no one is
- offended.. :-)
-
- Please mail me if you can help.
- Thanks for reading..
-
- Roger "Mr Happy :-)" Carasso
- --
-