Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!rice!sun-spots-request From: david@eng.sun.com Newsgroups: comp.sys.sun Subject: Re: The "ws_read_indev error length %d" error Keywords: Miscellaneous Message-ID: <5560@brazos.Rice.edu> Date: 7 Mar 90 19:00:29 GMT Sender: root@rice.edu Organization: Sun-Spots Lines: 24 Approved: Sun-Spots@rice.edu X-Refs: Original: v9n72 X-Sun-Spots-Digest: Volume 9, Issue 72, message 10 In article <5541@brazos.Rice.edu> a.worsley@ditmela.cng.dit.CSIRO.au (Andrew Worsley) writes: >X-Sun-Spots-Digest: Volume 9, Issue 72, message 9 > >Recently some one added the following to his .login and caused a week and >a half of mystery and frustration (you need X11R[34]: > >alias xinit xinit; kbd_mode -a If you run X from a SunView window instead of the console, you need to do a kbd_mode -e instead of kbd_mode -a. You should probably set up a shell script something like this... #! /bin/sh xinit case "$WINDOW_PARENT" in "") kbd_mode -a ;; *) kbd_mode -e ;; esac This is still not foolproof, but it's an improvement. David DiGiacomo, Sun Microsystems, Mt. View, CA sun!david david@eng.sun.com