[Info-vax] Screen management in C
Arne Vajhøj
arne at vajhoej.dk
Mon Dec 30 23:06:10 EST 2024
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
More information about the Info-vax
mailing list