www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/05/23/18:03:19

Message-Id: <199905232203.WAA92108@out1.ibm.net>
From: "Mark E." <snowball3 AT bigfoot DOT com>
To: djgpp-workers AT delorie DOT com
Date: Sun, 23 May 1999 18:04:04 -0400
MIME-Version: 1.0
Subject: ctrl+space and termios/tminit.c
X-mailer: Pegasus Mail for Win32 (v3.11)
Reply-To: djgpp-workers AT delorie DOT com

The code in tminit.c that converts ctrl+space to ascii 0 for 
termios doesn't seem to be completely reliable.

__direct_ctrlsense() returns the state of the ctrl key at the time of the 
interrupt call. However, since the keyboard is buffered, it's possible the 
key returned from __direct_keyinput() was typed long enough ago so 
that the ctrl-key is longer pressed once __direct_ctrlsense() is called 
and so the space will be left as-is or worse if a regular space is typed 
before the ctrl+space then the regular space will be converted to ascii 
0. 

Perhaps this feature should be removed?

Mark

--- 
Mark Elbrecht, snowball3 AT bigfoot DOT com
http://snowball.frogspace.net/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019