home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!cs.utexas.edu!hermes.chpc.utexas.edu!michael
- From: michael@chpc.utexas.edu (Michael Lemke)
- Subject: Re: Is it possible to DEFINE KEY in edit/edt AS EXIT?
- Message-ID: <1992Nov20.220436.3530@chpc.utexas.edu>
- Organization: The University of Texas System - CHPC
- References: <1992Nov20.093822.21259@cs.umb.edu>
- Date: Fri, 20 Nov 92 22:04:36 GMT
- Lines: 72
-
- In article <1992Nov20.093822.21259@cs.umb.edu> mzraly@ra.cs.umb.edu (Michael S Zraly) writes:
- >I am writing a *very* simple data-entry program for use by a few people
- >with no experience whatsoever with editing on VMS systems. I find it
- >easiest to use EDIT/EDT for the data entry part, but I would like to
- >avoid having to remind the users to type CONTROL-ZexitRETURN: I'd
- >much rather be able to have them type, for instance, CONTROL-X or F10
- >and have EDT interpret this as CONTROL-ZexitRETURN somehow.
- >
- [...]
-
- >On another note, I would like to have the numeric keypad kept in
- >numeric mode rather than application mode:
-
-
- Here's a bit from my EDTINI.EDT file which defines GOLD-E as exit and
- GOLD-Q as quit and sets PF2 to toggel between Application keypad and
- numeric keypad. GOLD-PF2 still gives you access to HELP. You can put
- it on another key if you like (I hit PF2 too often accidentially so I
- got annoyed by waiting for the help screen to come up and disappear for
- nothing).
-
- Best put EDTINI.EDT somewhere and define a logical EDTINI to point to
- it. That way it will always be found irrespective of your current
- directory.
-
- Michael
- INSERT =NUMER
- DEFINE KEY 1 AS "I1^Z."
- DEFINE KEY 2 AS "I2^Z."
- DEFINE KEY 3 AS "I3^Z."
- DEFINE KEY 4 AS "I4^Z."
- DEFINE KEY 5 AS "I5^Z."
- DEFINE KEY 6 AS "I6^Z."
- DEFINE KEY 7 AS "I7^Z."
- DEFINE KEY 8 AS "I8^Z."
- DEFINE KEY 9 AS "I9^Z."
- DEFINE KEY 0 AS "I0^Z."
- DEFINE KEY 16 AS "I.^Z."
- DEFINE KEY 18 AS "I-^Z."
- DEFINE KEY 19 AS "I,^Z."
- DEFINE KEY 21 AS "^M."
- DEFINE KEY 10 AS "EXTKEYPAD."
- ^Z
- INSERT =KEYPAD
- DEFINE KEY 1 AS "W."
- DEFINE KEY 2 AS "EL."
- DEFINE KEY 3 AS "C."
- DEFINE KEY 4 AS "ADV."
- DEFINE KEY 5 AS "BACK."
- DEFINE KEY 6 AS "CUTSR."
- DEFINE KEY 7 AS "PAGETOP."
- DEFINE KEY 8 AS "(16L)."
- DEFINE KEY 9 AS "APPENDSR."
- DEFINE KEY 0 AS "L."
- DEFINE KEY 16 AS "SEL."
- DEFINE KEY 18 AS "DEW."
- DEFINE KEY 19 AS "D+C."
- DEFINE KEY 21 AS "."
- DEFINE KEY 10 AS "EXTNUMER."
- ^Z
- F =MAIN
- DEFINE MACRO NUMER
- DEFINE MACRO KEYPAD
- DEFINE KEY 10 AS "EXTNUMER."
- DEFINE KEY GOLD E AS "EXT EXIT."
- DEFINE KEY GOLD Q AS "EXT ?'Do you really want to quit? Type CRTL/U to continue, <ENTER> to quit.' QUIT."
- SET MODE CHANGE
-
- --
- Michael Lemke
- Astronomy, UT Austin, Texas
- (michael@io.as.utexas.edu or UTSPAN::UTADNX::IO::MICHAEL [SPAN])
-