bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: first keycode is not correct when application uses own poll


From: Pavel Stehule
Subject: Re: first keycode is not correct when application uses own poll
Date: Mon, 19 Jul 2021 09:48:58 +0200



po 19. 7. 2021 v 6:00 odesílatel Pavel Stehule <pavel.stehule@gmail.com> napsal:
Hi


   flushinp
       The flushinp routine throws away any typeahead that has been  typed  by
       the user and has not yet been read by the program.

though that applies to what's in the FIFO (still a race with the actual
terminal).



I tested flushinp and it doesn't help

But I think I understand the problem. I didn't know that returned codes are related to terminal settings in this case, and because I use my own poll, the event on keyboard is created before I call get_wch function, and then ncurses cannot send smkx in time.

Thank you for reply - I hope so I have a better idea how it works

Regards

Pavel


Regards

Pavel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]