Sujet : Re: Screen management in C
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 31. Dec 2024, 05:06:10
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vkvqjj$1t7rn$1@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : Mozilla Thunderbird
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