home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
me34src.zip
/
me3
/
mutt
/
misc
/
ega.mut
< prev
next >
Wrap
Text File
|
1995-01-14
|
1KB
|
29 lines
;; ega.mut : some support for EGA big displays
;; Some of the routines require NANSI.SYS to provide escape key processing
;; that kicks the EGA display in and out of 43 line mode. These Mutt
;; routines could be replaced by a .exe or batch file to do the same
;; things (and run with shell-command).
;; Why is this stuff usefull: When ME starts up, it looks at the display
;; and uses all the lines and columns. Some displays (like EGA and VGA)
;; support multiple display modes. If you want to edit in one mode and
;; run dos in another, these routines will be handy.
;; routines:
;; EGA : Send an escape sequence to the display to enable 43 line mode.
;; noEga: Send an escape sequence to the display to enable 25 line mode.
;; MAIN: set some hooks so that 43 line mode is toggled when entering and
;; leaving ME.
;; C Durland Public Domain
(include me.mh)
(defun
EGA { (puts "^[[=43h")(screen-length 43) }
noEGA { (puts "^[[=3h") (screen-length 25) }
MAIN
{
(register-hook ENTER-ME-HOOK "EGA")
(register-hook LEAVE-ME-HOOK "noEGA")
(EGA)
}
)