Iris key remapping
Miq Millman
miq at chromavac.SGI.COM
Thu Jan 26 07:22:05 AEST 1989
In article <24593 at sgi.SGI.COM>, kipp at warp.SGI.COM (Kipp Hickman) writes:
> In article <8901100147.aa05163 at SEM.BRL.MIL>, mike at 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 <device.h>
>
> 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 at sgi.com)
>
The line I put in is the correct form. Please make noted change before you
use this stuff.
More information about the Comp.sys.sgi
mailing list