HP3000-L Archives

June 1999, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Gallaher <[log in to unmask]>
Reply To:
Mark Gallaher <[log in to unmask]>
Date:
Fri, 4 Jun 1999 06:50:45 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (15 lines)
Hello!

  I'm writing a text-adventure in Cobol on a 3k.  What I need to do is
something like BASIC's INKEY function; I want to check if any keyboard input
has happened and possibly do other processing.

  I *think* I need to open a file to $STDIN and set a quick timeout using
FCONTROL; am I on the right track?

  The game is multiplayer from the get-go, so I can't have one player
"control" the game, by not typing anything, which is what I get using
COBOL's ACCEPT statement.

  Thanks for any help; I am doing this as an HP and COBOL exercise

ATOM RSS1 RSS2