2003-07-17 Kazuhiro Fujieda * fhandler.h (class dev_console): Add `metabit' indicating the current meta key mode. * fhandler_console.cc (fhandler_console::read): Set the top bit of the character if metabit is true. * fhandler_console.cc (fhandler_console::ioctl): Implement KDGKBMETA and KDSKBMETA commands. * fhandler_tty.cc (process_ioctl): Support KDSKBMETA. Set negative errno to ioctl_retval. (fhandler_tty_slave::ioctl): Send KDGKBMETA and KDSKBMETA to the master. Rewrite slightly to explicit whether the master is a console or not. * include/cygwin/kd.h: New file for the meta key mode.