🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.emacs
Article #3531

Re: Sun type 5 keyboard

#3531
From: Eric L. Schott
Date: Thu, 21 Jan 1993 19:13
22 lines
1167 bytes
In article <HOLLEN.93Jan19101850@peg.megatek.UUCP>, hollen@megatek.UUCP (Dion Hollenbeck) writes:
> 
> Has anyone figured out how to tell if there is a Sun type 5 keyboard
> attached, as oppposed to the Type 3 and 4 which are at least
> compatible with each other.

I use the following in my .xinitrc:

  dumpkeys | /bin/grep -s "key 123	 all rf(15)"
  if [ $? -eq 1 ]; then
    xmodmap .vt100keypad-on-sun.xmodmap	# Old sun4 keypad
  else
    xmodmap .vt100keypad-on-new-sun.xmodmap	# New sun5 keypad
  fi

(Becareful of tab in string.)

-- 

Eric L. Schott,    HRB Systems, Inc.    814/238-4311     els@icf.hrb.com
  "As we acquire more knowledge, things do not become more comprehensible
   but more mysterious."                  Albert Schweitzer, "Paris Notes"
Technical Details
Message-ID: <1993Jan21.141353.19934@icf.hrb.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!psuvax1!atlantis.psu.edu!icf.hrb.com!els
References: <HOLLEN.93Jan19101850@peg.megatek.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!psuvax1!atlantis.psu.edu!icf.hrb.com!els
From: els@icf.hrb.com (Eric L. Schott)
Newsgroups: comp.emacs,gnu.emacs.help
Subject: Re: Sun type 5 keyboard
Message-ID: <1993Jan21.141353.19934@icf.hrb.com>
Date: 21 Jan 93 14:13:53 EST
References: <HOLLEN.93Jan19101850@peg.megatek.UUCP>
Distribution: usa
Organization: HRB Systems, Inc.
Lines: 22