Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

comp.sys.3b1 FAQ part2
Section - 8.4. How do I stop that darn double-ESC mode on console windows?

( Part1 - Part2 - Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Sex offenders ]


Top Document: comp.sys.3b1 FAQ part2
Previous Document: 8.3. Why did the time display at the top of the screen go away?
Next Document: 8.5. What do I do when the machine hangs at the boot message?
See reader questions & answers on this topic! - Help others by sharing your knowledge
	Some programs that use the TAM (Terminal Access Method)
library can leave the keyboard (really the shell window) in a strange
state after leaving.  This state is characterized by each press of the
ESC key injecting two 0x1b characters into the input stream.  This
generally doesn't help anybody -- vi beeps too much, emacs is
unusable, etc.  The fix is to issue the following ioctl from a C program:

		#include <sys/window.h>
		ioctl(0, WIOCSESC, 0);	/* to turn off double-esc mode */

	If you really want it back again, do the following:

		ioctl(0, WIOCSESC, 1);	/* to turn on double-esc mode */

User Contributions:

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA




Top Document: comp.sys.3b1 FAQ part2
Previous Document: 8.3. Why did the time display at the top of the screen go away?
Next Document: 8.5. What do I do when the machine hangs at the boot message?

Part1 - Part2 - Single Page

[ Usenet FAQs | Web FAQs | Documents | RFC Index ]

Send corrections/additions to the FAQ Maintainer:
jbunch@nyx.nyx.net (John B. Bunch)





Last Update March 27 2014 @ 02:11 PM