muta...@gmail.com
2021-11-28 09:19:26 UTC
When I run micro-emacs, it needs to switch to getting
keystrokes from the user without the OS echoing the
characters and without waiting for a complete line to
be obtained.
In Unix there is an ioctl call to switch to that mode. On
Windows there is a SetConsoleMode function:
https://docs.microsoft.com/en-us/windows/console/setconsolemode
On MSDOS it appears that the application is instead
meant to stop doing a read() call and basically do an
INT 21H that is get_char_immediate_without_echo().
I'm wondering if there is some underlying principle that
says which of those 3 approaches is technically the best.
How do you compare APIs?
Thanks. Paul.
keystrokes from the user without the OS echoing the
characters and without waiting for a complete line to
be obtained.
In Unix there is an ioctl call to switch to that mode. On
Windows there is a SetConsoleMode function:
https://docs.microsoft.com/en-us/windows/console/setconsolemode
On MSDOS it appears that the application is instead
meant to stop doing a read() call and basically do an
INT 21H that is get_char_immediate_without_echo().
I'm wondering if there is some underlying principle that
says which of those 3 approaches is technically the best.
How do you compare APIs?
Thanks. Paul.