Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

What the world *really* needs is a good Automatic Bicycle Sharpener.


computers / comp.sys.unisys / Re: 2200 UCS C Question

SubjectAuthor
* 2200 UCS C QuestionKira Ash
`* Re: 2200 UCS C QuestionAndrew
 `- Re: 2200 UCS C QuestionKira Ash

1
2200 UCS C Question

<4e997771-1cac-4495-b540-ffa75535b9ebn@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=174&group=comp.sys.unisys#174

  copy link   Newsgroups: comp.sys.unisys
X-Received: by 2002:ae9:ef4f:0:b0:6cb:d294:3333 with SMTP id d76-20020ae9ef4f000000b006cbd2943333mr2037653qkg.511.1662655443208;
Thu, 08 Sep 2022 09:44:03 -0700 (PDT)
X-Received: by 2002:ac8:5d91:0:b0:35a:6b11:6bbd with SMTP id
d17-20020ac85d91000000b0035a6b116bbdmr2904288qtx.227.1662655443039; Thu, 08
Sep 2022 09:44:03 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.unisys
Date: Thu, 8 Sep 2022 09:44:02 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=68.186.103.105; posting-account=qPbaDgoAAADbIvbos5AEJa5zMjgnmjMM
NNTP-Posting-Host: 68.186.103.105
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4e997771-1cac-4495-b540-ffa75535b9ebn@googlegroups.com>
Subject: 2200 UCS C Question
From: hpeinteg...@gmail.com (Kira Ash)
Injection-Date: Thu, 08 Sep 2022 16:44:03 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 10
 by: Kira Ash - Thu, 8 Sep 2022 16:44 UTC

Hi all,

I'm fairly new to the OS 2200 environment. I noticed that when I invoke newly compiled UCS C programs with @XQT, access to stdin works as expected - the user is prompted for input by getchar(), for instance. However, when invoking the program directly (via @programname), the program immediately completes without prompting for input, and garbage is present in the input buffers. I'm probably missing something obvious, but I would very much appreciate any suggestions as to why this is!!

Kira

Re: 2200 UCS C Question

<tfddfl$nh9$1@gioia.aioe.org>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=175&group=comp.sys.unisys#175

  copy link   Newsgroups: comp.sys.unisys
Path: i2pn2.org!i2pn.org!aioe.org!5o/dDybsjSwKCUt9oFhEPg.user.46.165.242.75.POSTED!not-for-mail
From: Dou...@hyperspace.vogon.gov (Andrew)
Newsgroups: comp.sys.unisys
Subject: Re: 2200 UCS C Question
Date: Thu, 8 Sep 2022 20:49:25 +0200
Organization: Aioe.org NNTP Server
Message-ID: <tfddfl$nh9$1@gioia.aioe.org>
References: <4e997771-1cac-4495-b540-ffa75535b9ebn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="24105"; posting-host="5o/dDybsjSwKCUt9oFhEPg.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.13
X-Notice: Filtered by postfilter v. 0.9.2
 by: Andrew - Thu, 8 Sep 2022 18:49 UTC

Kira Ash wrote:
> Hi all,
>
> I'm fairly new to the OS 2200 environment. I noticed that when I invoke newly compiled UCS C programs with @XQT, access to stdin works as expected - the user is prompted for input by getchar(), for instance. However, when invoking the program directly (via @programname), the program immediately completes without prompting for input, and garbage is present in the input buffers. I'm probably missing something obvious, but I would very much appreciate any suggestions as to why this is!!
>
> Kira
>

If you call a program as a processor, the first thing you get to read is
the fields on the processor call. As an example,
@UC,opts file.input-elt,file2.output-om
The normal procedure is to call RINF$ (SYSLIB) to move all this
information to an internal buffer, RINF$ uses some form of ER READ$ or
ER SYMB$ to do this. Once you have read the command line you can start
using getchar() normally.

If you call a program using @xqt you don't have anything RINF$
understands so you can move straight to user-input.

Re: 2200 UCS C Question

<d8b756c2-6f3f-4959-ac4e-234911c4468an@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=177&group=comp.sys.unisys#177

  copy link   Newsgroups: comp.sys.unisys
X-Received: by 2002:ad4:5ca7:0:b0:4ac:7fd7:7d78 with SMTP id q7-20020ad45ca7000000b004ac7fd77d78mr3026795qvh.51.1662665006011;
Thu, 08 Sep 2022 12:23:26 -0700 (PDT)
X-Received: by 2002:a05:620a:7f4:b0:6bb:2f9:da86 with SMTP id
k20-20020a05620a07f400b006bb02f9da86mr7153596qkk.689.1662665005831; Thu, 08
Sep 2022 12:23:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.unisys
Date: Thu, 8 Sep 2022 12:23:25 -0700 (PDT)
In-Reply-To: <tfddfl$nh9$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=68.186.103.105; posting-account=qPbaDgoAAADbIvbos5AEJa5zMjgnmjMM
NNTP-Posting-Host: 68.186.103.105
References: <4e997771-1cac-4495-b540-ffa75535b9ebn@googlegroups.com> <tfddfl$nh9$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d8b756c2-6f3f-4959-ac4e-234911c4468an@googlegroups.com>
Subject: Re: 2200 UCS C Question
From: hpeinteg...@gmail.com (Kira Ash)
Injection-Date: Thu, 08 Sep 2022 19:23:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Kira Ash - Thu, 8 Sep 2022 19:23 UTC

On Thursday, September 8, 2022 at 11:49:32 AM UTC-7, Andrew wrote:
> Kira Ash wrote:
> > Hi all,
> >
> > I'm fairly new to the OS 2200 environment. I noticed that when I invoke newly compiled UCS C programs with @XQT, access to stdin works as expected - the user is prompted for input by getchar(), for instance. However, when invoking the program directly (via @programname), the program immediately completes without prompting for input, and garbage is present in the input buffers. I'm probably missing something obvious, but I would very much appreciate any suggestions as to why this is!!
> >
> > Kira
> >
> If you call a program as a processor, the first thing you get to read is
> the fields on the processor call. As an example,
> @UC,opts file.input-elt,file2.output-om
> The normal procedure is to call RINF$ (SYSLIB) to move all this
> information to an internal buffer, RINF$ uses some form of ER READ$ or
> ER SYMB$ to do this. Once you have read the command line you can start
> using getchar() normally.
>
> If you call a program using @xqt you don't have anything RINF$
> understands so you can move straight to user-input.

Thank you so much! That explains it.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor