Deutsch   English   Français   Italiano  
<vkvqjj$1t7rn$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: =?UTF-8?Q?Arne_Vajh=C3=B8j?= <arne@vajhoej.dk>
Newsgroups: comp.os.vms
Subject: Re: Screen management in C
Date: Mon, 30 Dec 2024 23:06:10 -0500
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <vkvqjj$1t7rn$1@dont-email.me>
References: <87o70xgq62.fsf@lucy.meyer21c.net> <vkmge7$3ltsp$1@dont-email.me>
 <vkmjlq$3mm86$1@dont-email.me> <vkmvfk$3p9tn$1@dont-email.me>
 <67702cde$0$714$14726298@news.sunsite.dk>
 <6773578e$0$713$14726298@news.sunsite.dk> <vkvp0i$22694$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 31 Dec 2024 05:06:11 +0100 (CET)
Injection-Info: dont-email.me; posting-host="64fb926f4ea296954f40448d10a1b7ff";
	logging-data="2006903"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18jJeS8AZJt2J1s/INigCP6ZqJ02tBcO2g="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:X7UeMXjHBLK3UqnIXP/VuyWXMrE=
In-Reply-To: <vkvp0i$22694$1@dont-email.me>
Content-Language: en-US
Bytes: 2017

On 12/30/2024 10:38 PM, Lawrence D'Oliveiro wrote:
> On Mon, 30 Dec 2024 21:31:41 -0500, Arne Vajhøj wrote:
>>           while(smg.GetKey() != SMG$K_TRM_PF1);
> 
> Is it possible to hook this kind of thing into an event loop? Some
> equivalent of select/poll?
> 
> That would make it easier to do things like handle multiple terminals at
> once.

I think that would be using a screwdriver to hammer a nail in with.

One could create a loop around smg$read_keystroke, replace
all smg$read_string call with lots of application code,
open multiple virtual keyboards to multiple terminals
(input device is an argument), use smg$read_keystroke
with a timeout and try multiple virtual keyboards.

It would require lots of code and perform poorly. And
I don't really see the use case.

Arne