[Info-vax] C Examples of Calling SMG$ Routines?
Craig A. Berry
craigberry at nospam.mac.com
Sun Jun 27 15:02:06 EDT 2021
On 6/27/21 12:13 PM, Zane H. Healy wrote:
> In looking at the "OpenVMS RTL Screen Management (SMG$) Manual" on the VSI
> website, they give examples of every language supported, except C/C++. The
> manual itself says it's new as of 2019, but also says it's for HP OpenVMS
> VAX/Alpha 7.3. :-) Looking at my copy of the manual for v6, all they did
> was remove the code for "RPG II".
>
> Does anyone happen to have some basic examples of using the SMG$ Routines in
> C? As it happens, the example does just what I need, since it shows how to
> use SMG$READ_KEYSTROKE.
I have a readpassphrase() implementation based on SMG$READ_COMPOSED_LINE:
https://github.com/FreeTDS/freetds/blob/master/vms/getpass.c
There is a Perl extension (necessarily implemented in C) that provides
SMG interfaces:
<https://metacpan.org/pod/smg>
This one doesn't look familiar to me. I think there was a different one
circulating at some point but I can't find it now.
More information about the Info-vax
mailing list