home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
max
/
max130.arc
/
WINDOW.MAX
< prev
Wrap
Text File
|
1988-10-30
|
3KB
|
130 lines
; This file does not use the window definitions located in windef.max
; because it is read every time that Max is started and has been optimized.
; Establish window defaults
window (1 1) ; border style
; Colors may be specified for the windows and the status line by
; additively combining red, green and blue components.
; bits color
; 1000 intensity
; 0100 red
; 0010 blue
; 0001 green
; One byte controls both background and foreground. The high
; order four bits specify background and the low order four
; bits specify foreground.
; These are good for monochrome
window (2 fmhex (0x07)) ; white text on black background
window (5 fmhex (0x70)) ; black on white status line/popup
; These are good for color
;window (2 fmhex (0x03)) ; cyan text on black background
;window (5 fmhex (0x04)) ; red status line on black
; Open window and associate with standard input and output
window (0 1 1 9 78) ; location
window (3 10000 127) ; buffer size and line length
window (4 " Command Entry ") ; title
window (6) ; open window
window (9 0 0) ; associate with stdin
window (9 1 0) ; associate with stdout
window (9 2 0) ; associate with stderr
; Open scratchpad window for function definitions
window (0 12 1 22 78) ; location
window (1 1) ; border style
window (3 30000 127) ; buffer size and line length
window (4 " Function Definition ") ; title
window (6) ; open
window (23 1 1) ; input mode
window (24 1 0) ; no overflow mode
; Link scratchpad window to standard input and output
window (8 0 1)
window (2 fmhex (0x07)) ; subsequent windows are black/white
; Define translate function and assign to F1
define (
f1 (
window (13 1)
)
)
; Define system function and assign to F2
; This function can be modified to select a new display page on
; systems that support multiple video pages.
define (
f2 (
window (20) ; Clear screen
system ("COMMAND") ; Invoke system command processor
window (20) ; Clear output from dos
window (26 0) ; Toggle status line to refresh
window (26 1)
window (18 0) ; Refresh command entry window
window (18 1) ; Refresh function definition
)
)
; Print current user defined functions
define (
f3 (
udfdir ()
)
)
; Verify and clear transient area
define (
f6 (
put ("Clear transient area? (y/n)")
get (response)
if (eq (struc (strsub (response 1 1)) "Y")
then (
tclear ()
)
)
)
)
; Verify quit and terminate Max
define (
f10 (
put ("Quit? (y/n)")
get (response)
case (struc (strsub (response 1 1))
when ("Y"
window (20) ; Clear screen
quit ()
)
when ("N"
break ()
)
default (
put ("No assumed.")
break ()
)
)
)
)
; Set the base of the transient area
tset ()