home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.development      Operating system development chatter      4,255 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,954 of 4,255   
   wolfgang kern to muta...@gmail.com   
   Re: SetConsoleMode   
   28 Nov 21 12:29:11   
   
   From: nowhere@nevernet.at   
      
   On 28/11/2021 10:19, muta...@gmail.com wrote:   
   > 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.   
      
   none of them, my keystrokes go always direct to the instance currently   
   in focus regardless of the type. so it's a matter of the active code to   
   tell system-/text-keys apart.   
   i.e. one instance could use F1..F12 as special character short cut while   
   another make some ASCII keys call system functions... just flexible.   
      
   > How do you compare APIs?   
      
   ?? Loonix vs. windoze vs. Mac ??   
   I like Sir Sinclair's ZX81 best.   
   __   
   wolfgang   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca