Path: utzoo!attcan!uunet!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!sun-barr!newstop!sun!eng.sun.com From: david@eng.sun.com (journey through the Universe of Slack) Newsgroups: comp.windows.x Subject: more on kbd_mode use (Sun specific) Message-ID: <133283@sun.Eng.Sun.COM> Date: 21 Mar 90 21:53:30 GMT Sender: david@sun.Eng.Sun.COM Lines: 15 A couple of weeks ago there was some discussion of the finer points of resetting the keyboard mode after the (MIT) server exits abnormally. Here's a fragment from the script I'm using now, in case anyone else finds it useful... # save keyboard mode, run server, restore keyboard mode kmode=`(exec kbd_mode 2>&1) | sed -n 's/Current mode is \(.\).*/\1/p'` xinit -- $SERVER -debug ... kbd_mode -$kmode 2> /dev/null -- David DiGiacomo, Sun Microsystems, Mt. View, CA sun!david david@eng.sun.com