🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.asm370
Article #1622

Re: Interacting with a TSO user from a program

#1622
From: Peter Flass
Date: Wed, 11 Mar 1992 09:30
28 lines
2091 bytes
  "Mark R. Ludwig" <mrl@UAI.COM> asks:
>   I am looking for an easier way to interact with a TSO user from a
>   program than using the PUTLINE, GETLINE, PUTGET, TPUT, TGET, or TPG
>   MACROs which IBM supplies.  My requirement is to be able to issue a
>   prompt on a line and have the user enter the response on the same
>   line.  Does the C environment support the Unix semantics, such that I
>   could have code like:
>
>           printf("...");  /* No \n at the end of the string */
>           gets(...);
>

I had this problem in PL/I and wrote a trivial routine which uses
TPUT to write the prompt without advancing to a new line and TGET
to read the reply, with some additional code to handle PL/I string
variables.

I don't see why this idea couldn't be adapted to C in the form of
'cputs()' and 'cgets()' functions ala Turbo-C if it's not already
available.

=====================================================================
= Peter Flass                               flass@nyslbd.gov        =
= Systems Programmer                        tel (518)458-5114       =
= NYS Legislative Bill Drafting Commission                          =
= 1450 Western Ave.                                                 =
= Albany, NY  12203                                                 =
=====================================================================
Technical Details
Message-ID: <ASM370%92031109302756@UCF1VM.BITNET>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!auvm!136.161.128.3!FLASS

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcdcb,934060ecaacc1e87
X-Google-Attributes: gidfcdcb,public
X-Google-ArrivalTime: 1992-03-11 06:47:56 PST
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!auvm!136.161.128.3!FLASS
Message-ID: <ASM370%92031109302756@UCF1VM.BITNET>
Newsgroups: bit.listserv.asm370
Date:         Wed, 11 Mar 1992 09:30:24 LCL
Sender:       IBM 370 Assembly Programming Discussion List <ASM370@UGA.BITNET>
From:         Peter Flass <flass@136.161.128.3>
Subject:      Re: Interacting with a TSO user from a program
Comments: To: IBM 370 Assembly Programming Discussion List
              <ASM370@ucf1vm.cc.ucf.edu>