Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!purdue!decwrl!sgi!miq@chromavac.SGI.COM From: miq@chromavac.SGI.COM (Miq Millman) Newsgroups: comp.sys.sgi Subject: Re: Iris key remapping Summary: OOOPS, here is a fixed version Message-ID: <25517@sgi.SGI.COM> Date: 25 Jan 89 21:22:05 GMT References: <8901100147.aa05163@SEM.BRL.MIL> <24593@sgi.SGI.COM> Sender: daemon@sgi.SGI.COM Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 39 In article <24593@sgi.SGI.COM>, kipp@warp.SGI.COM (Kipp Hickman) writes: > In article <8901100147.aa05163@SEM.BRL.MIL>, mike@BRL.MIL (Mike Muuss) writes: > > As best as I can tell, the "4D" series of SGI machines use > > IBM PS/2 keyboards, probably from a second-source vendor. > > ... [stuff deleted] > > ... > > Best, > > -Mike > > We supposedly use an IBM-RT keyboard, for what its worth. From my own [stuff deleted] > > Here is an example code sequence that will bind your F1 key to say > "ls -l\r" (I am using printf notation): > > #include > > int key_number = F1KEY; > char *key_value = "ls -l\r"; this ^^^^^^^^^^^^^^^^^^^^^ is incorrect the actual line should read char *key_value = "ls -l\\r"; Notice the double \ this is necessary because the C compiler ignoresthe first \ unless it is lead to read it in. > printf("\033P101;%d.y%s\033\\", key_number, key_value); > > > kipp hickman (kipp@sgi.com) > The line I put in is the correct form. Please make noted change before you use this stuff.