ITEM: BB2338L
Programming 3164 function keys from shell script
ENV:
        AIX 3.2.5
        Unknown model
        3164 color terminal
DESC:
        How can 3164 function keys be reset?
        Can 3164 function keys be reporgrammed from software, ie
        is there a sequence you can send a 3164 from a shell script
        to reprogram its function keys?
        What is the 3164 terminal tech reference manuals publication
        number so that I can order a copy for myself?
ACT:
        From the 3164 ASCII Color Display Station Description
        manual (GA18-2317-01) PAGE 5-34:
        71. Load programmable function key command:
        ESC ! = Fn Ff Fp ESC =
                Where Fn is:    Function key number
                                Bit 7 Always 0
                                Bit 6 Always 1
                                5 - 1 Function key number (1 to 24)
                      Ff is:    Command flag
                                Bit 7 Always 0
                                Bit 6 Always 1
                                5 - 2 Always 0
                                Bit 1 0: AID format
                                      1: Data Stream Format
                              Fp is:    Data (max 64 bytes per function key)
For example, to program my function key F1 to send "testing" when
hit, this shell script does the trick:
echo "\\033!=\\041\\041testing\\033=" > /dev/tty\#
Your next question, how to reset the function keys from a shell
script is covered in ch5 as well:
ESC (space) t
Support Line: Programming 3164 function keys from shell script ITEM: BB2338L
Dated: October 1995 Category: N/A
This HTML file was generated 99/06/24~13:30:23
Comments or suggestions?
Contact us