;*************************** AMUS Program Label ******************************
; Filename: FUNKEY.M68 Date: 05/08/89
; Category: UTIL Hash Code: 030-314-612-161 Version: 1.0
; Initials: ULTR/AM Name: DAVID PALLMANN
; Company: ULTRASOFT Telephone #: 5163484848
; Related Files: NONE
; Min. Op. Sys.: NA Expertise Level: BEG
; Special: THIS IS NEW SOFTWARE, USE IT WITH CAUTION
; Description: Allows creation/modification of function key translation files
; Usage .FUNKEY or .FUNKEY filename
;
;*****************************************************************************
;****************************************************************************
;* *
;* FUNKEY *
;* Function Key Translation Builder/Editor *
;* *
;****************************************************************************
;Copyright (C) 1989 UltraSoft Corporation. All Rights Reserved.
;
;Written by: David Pallmann
;
;Edit History:
;1.0(100) 05-May-89 created. /DFP
;user did not enter anything on the command line
;assume the worst - that the user has no prior experience with the subject
;matter at hand - and walk him through it.
LONG: TYPESP FUNKEY version ;
VCVT START+2,OT$TRM ;
CRLF ;
TYPECR Copyright (C) 1989 UltraSoft Corporation. All Rights Reserved.
CRLF ;
TYPESP Do you need instructions on how to create a function key translation file?
KBD EXIT ;
CRLF ;
CMPB @A2,#'Y ;
BNE GETNAM ;
TTYL HELP ;
;show the user the name of his terminal driver, and give him the option to
;override it
GETNAM: TYPESP Your terminal driver name is
TTYL TDVNAM(A5) ;
TYPECR . ;
TYPESP <Press RETURN to use this name, or enter alternate name now: >
KBD EXIT ;
CRLF ;
LIN ;
BNE 10$ ;
LEA A2,TDVNAM(A5) ;
10$: LEA A1,FILE+D.FIL(A5) ;
PACK ;
PACK ;
;option to show user the common translation file extensions
SHOEXT: TYPESP Do you want to see a list of standard file extensions?
KBD EXIT ;
CRLF ;
CMPB @A2,#'N ;
BEQ GETEXT ;
CMPB @A2,#'Y ;
BNE SHOEXT ;
TTYL STDEXT ;
NEWFIL: TYPESP The file you wish to create will be named
PFILE FILE(A5) ;
TYPE < - is this correct? > ;
KBD EXIT ;
CRLF ;
CMPB @A2,#'N ;
BEQ CRAP11 ;
CMPB @A2,#'Y ;
BNE NEWFIL ;
JMP CREATE ;
CRAP11: JMP GETNAM
;we are ready to get down to business
;put the terminal into single character mode
;clear the screen and echo the file specification
;************
;* CURENT *
;************
;Function: Show current translation
;
;Inputs: D2 - vector (zero means no translation)
; A3 - base of translation module in memory
HELP: LINE <Not all keyboards are the same. Terminals from various manufacturers often>
LINE <differ in the number and kind of function keys available. The program>
LINE <you are running can be used to create or modify a translation file that>
LINE <associates meanings to function keys.>
LINE
LINE <By function keys, we are referring to both the numbered 'F' keys (F1, F2, F3,>
LINE <and so forth) as well as the 'special' keys (DEL CHAR, EXECUTE, NEXT SCREEN,>
LINE <etc.). The only keys that do NOT require special translation are the>
LINE <common ones: A-Z, a-z, 0-9, !@#$%^&*()-_=+`~\|]}[{;:'/?., SPACE BAR,>
LINE <RETURN, TAB, ENTER, and HOME. Anything else on your keyboard probably does>
LINE <need translation.>
LINE
BYTE 0
STDEXT: LINE < ABX AlphaBASE> MAX AlphaMAIL>
LINE < AMX Alpha Micro line editor MLX MULTI>
LINE < CAX AlphaCALC USX UltraSoft>
LINE < FIX AlphaFIX VUX AlphaVUE>
LINE < IFX INFLD.SBR WRT AlphaWRITE>
LINE < IMX INMEMO.SBR>
LINE
BYTE 0
EVEN