home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!pacific.mps.ohio-state.edu!davis
- From: davis@pacific.mps.ohio-state.edu ("John E. Davis")
- Subject: Re: Is it possible to DEFINE KEY in edit/edt AS EXIT?
- In-Reply-To: mzraly@ra.cs.umb.edu's message of 20 Nov 92 09:38:22 GMT
- Message-ID: <DAVIS.92Nov20105156@pacific.mps.ohio-state.edu>
- Sender: news@pacific.mps.ohio-state.edu
- Nntp-Posting-Host: pacific.mps.ohio-state.edu
- Reply-To: davis@pacific.mps.ohio-state.edu (John E. Davis)
- Organization: "Dept. of Physics, The Ohio State University"
- References: <1992Nov20.093822.21259@cs.umb.edu>
- Date: Fri, 20 Nov 1992 15:51:56 GMT
- Lines: 48
-
- In article <1992Nov20.093822.21259@cs.umb.edu> mzraly@ra.cs.umb.edu (Michael S
- Zraly) writes:
-
- [that he would like to bind a key to exit and save as well as
- put the application keypad in a numeric state in the EDT editor]
-
-
- I am posting my solution because this came up a few months ago and I do not
- recall anyone posting what is the obvious solution in my opinion. Here is an
- edt startup file (edtini.edt) which binds the application keys to their
- numeric equivalent and sets the gold-E key combination to exit and save.
-
- ---------------------------------------------------------------
- define key gold e as "ext exit." !exit saving main buffer
- !
- ! remap application keypad keys to numeric values
- !
- define key 19 as 'i,^Z.'
- define key 16 as 'i.^Z.'
- define key 18 as 'i-^Z.'
- define key 21 as '^M.'
- define key 0 as 'i0^Z.'
- 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.'
- set mode change !enter full screen mode
- -------------------------------------------------------
-
- It would be nice to write a simple macro which would simply toggle the
- bindings of these keys. At any rate, the above should accomplish what is
- intended.
-
-
-
- --
- _____________
- #___/John E. Davis\_________________________________________________________
- #
- # internet: davis@amy.tch.harvard.edu
- # bitnet: davis@ohstpy
- # office: 617-735-6746
- #
-