home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Jason Aller Floppy Collection
/
199.img
/
HYPE4.ZIP
/
SETVT.HP
< prev
next >
Wrap
Text File
|
1990-05-08
|
11KB
|
421 lines
; setvt.hp -- HyperACCESS/5, VT52,100,200,320 Emulator setup script
;
; $Revision: 1.0 $
; $Date: 13 Jul 1989 12:46:18 $
;
;
;
;
option("temporary settings",yes)
option("ignore case", yes)
set flag(F(3),false) ;initialize VT52 flag
cursor save()
position(1,1)
save screen(24,80)
setting("foreground",11)
setting("background",0)
wipe screen()
position(2,34)
prompt("HyperACCESS//5")
position(3,29)
prompt("Terminal Emulation Setup")
position(5,29)
prompt("VT52, VT100, VT200, VT320")
label(10)
set flag(F(0),false)
branch subroutine(100) ;display main menu
label(15)
set string(S(0),"")
wait key(S(0),200)
length("/S(0)",I(0))
ifnot equal(I(0),1) branch(16)
if string match(S(0),"D") branch subroutine(200) ;terminal display options
if flag(F(0)) branch(10)
if string match(S(0),"T") branch subroutine(250) ;terminal mode options
if flag(F(0)) branch(10)
if string match(S(0),"C") branch subroutine(280) ;set tabs
if flag(F(0)) branch(10)
if string match(S(0),"A") branch subroutine(290) ;set application keys
if flag(F(0)) branch(10)
if string match(S(0),"Q") branch (350) ;exit setup
label(16)
prompt("/x07") ;Beep on error and return
branch(15)
label(100) ;Main menu display
branch subroutine(110)
position(7,10)
draw box(8,62)
position(8,12)
setting("foreground",14)
prompt("D")
position(9,12)
prompt("T")
position(10,12)
prompt("C")
position(11,12)
prompt("A")
position(13,12)
prompt("Q")
setting("foreground",11)
position(8,13)
prompt("isplay options")
position(9,13)
prompt("erminal options")
position(10,13)
prompt("lear tabs")
position(11,13)
prompt("pplication keys")
position(13,13)
prompt("uit setup")
setting("foreground",15)
position(8,29)
prompt("-- select terminal display options")
position(9,29)
prompt("-- select terminal mode")
position(10,29)
prompt("-- clear tabs settings")
position(11,29)
prompt("-- select terminal application options")
position(13,29)
prompt("-- exit this setup using current settings")
setting("foreground",11)
position(17,17)
prompt("Press the first letter of the option to change")
position(17,15)
return()
label(110) ;Subroutine to clear partial screen
position(6,1)
wipe screen(19,80)
setting("foreground",11)
return()
label(200) ;Display options menu
branch subroutine(110)
set flag(F(1),false)
position(7,34)
prompt("Display options")
position(8,26)
draw box(9,30)
setting("foreground",14)
position(9,28)
prompt("8")
position(10,28)
prompt("1")
position(12,28)
prompt("D")
position(13,28)
prompt("N")
position(15,28)
prompt("R")
setting("foreground",11)
position(9,29)
prompt("0 column width (default)")
position(10,29)
prompt("32 column width")
position(12,29)
prompt("isplay cursor (default)")
position(13,29)
prompt("o cursor displayed")
position(15,29)
prompt("eturn to previous menu")
position(18,21)
prompt("Press the first letter of the option to set")
label(205)
set string(S(0),"")
set flag(F(1),false)
position(18,19)
wait key(S(0),200)
length("/S(0)",I(0))
ifnot equal(I(0),1) branch(206)
if string match(S(0),"8") branch subroutine(207)
if flag(F(1)) branch(200)
if string match(S(0),"1") branch subroutine(209)
if flag(F(1)) branch(200)
if string match(S(0),"D") branch subroutine(211)
if flag(F(1)) branch(200)
if string match(S(0),"N") branch subroutine(213)
if flag(F(1)) branch(200)
if string match(S(0),"R") branch(219)
label(206)
prompt("/x07") ;Beep on error and return
branch(205)
label(207)
prompt("/x1B[?3l") ;Set 80 column width
set flag(F(1),true)
branch subroutine(330)
return()
label(209)
prompt("/x1B[?3h") ;Set 132 column width
set flag(F(1),true)
branch subroutine(330)
return()
label(211)
prompt("/x1B[?25h") ;Set display cursor
set flag(F(1),true)
return()
label(213)
prompt("/x1B[?25l") ;Set hide cursor
set flag(F(1),true)
return()
label(219) ;Return to main menu
set flag(F(0),true)
return()
label(250) ;Terminal options menu
branch subroutine(110)
position(7,34)
prompt("Terminal options")
position(8,25)
draw box(10,35)
setting("foreground",14)
position(9,27)
prompt("1")
position(10,27)
prompt("2")
position(11,27)
prompt("3")
position(12,27)
prompt("4")
position(13,27)
prompt("5")
position(14,27)
prompt("6")
position(16,27)
prompt("R")
setting("foreground",11)
position(9,29)
prompt("-- VT52 mode")
position(10,29)
prompt("-- VT100 mode")
position(11,29)
prompt("-- VT200 mode, 7-bit controls")
position(12,29)
prompt("-- VT200 mode, 8-bit controls")
position(13,29)
prompt("-- VT320 mode, 7-bit controls")
position(14,29)
prompt("-- VT320 mode, 8-bit controls")
position(16,28)
prompt("eturn to previous menu")
setting("foreground",11)
position(19,20)
prompt("Press 1 through 6, or R from the options above")
label(255)
set string(S(0),"")
position(19,18)
wait key(S(0),200)
length("/S(0)",I(0))
ifnot equal(I(0),1) branch(256)
if string match(S(0),"1") branch(259)
if string match(S(0),"2") branch(261)
if string match(S(0),"3") branch(267)
if string match(S(0),"4") branch(269)
if string match(S(0),"5") branch(267)
if string match(S(0),"6") branch(269)
if string match(S(0),"R") branch(271)
label(256)
prompt("/x07") ;Beep on error and return
branch(255)
label(259)
set flag(F(3),true) ;Set VT52 mode
branch(271)
label(261)
prompt("/x1B[61/"p") ;Set VT100 mode
branch(271)
label(267)
prompt("/x1B[63;1/"p") ;Set VT200,320 mode, 7-bit
branch(271)
label(269)
prompt("/x1B[62;1/"p") ;Set Vt200,320 mode, 8-bit
label(271)
set flag(F(0),true)
return()
label(280) ;Set tabs menu
branch subroutine(110)
position(7,37)
prompt("Set tabs")
position(8,27)
draw box(4,29)
setting("foreground",14)
position(9,29)
prompt("C")
position(10,29)
prompt("R")
setting("foreground",11)
position(9,30)
prompt("lear tab settings")
position(10,30)
prompt("eturn to previous menu")
position(13,21)
prompt("Press the first letter of the option to set")
label(282)
set string(S(0),"")
position(13,19)
wait key(S(0),200)
length("/S(0)",I(0))
ifnot equal(I(0),1) branch(283)
if string match(S(0),"C") branch(284)
if string match(S(0),"R") branch(288)
label(283)
prompt("/x07") ;Beep on error and return
branch(282)
label(284)
prompt("/x1B[3g") ;Clear all tab settings
branch(282)
label(288)
set flag(F(0),true)
return()
label(290) ;Application keys menu
branch subroutine(110)
position(6,33)
prompt("Application keys")
position(7,21)
draw box(17,41)
setting("foreground",14)
position(8,23)
prompt("U")
position(9,23)
prompt("L")
position(11,23)
prompt("M")
position(12,23)
prompt("N")
position(14,23)
prompt("1")
position(15,23)
prompt("2")
position(16,23)
prompt("3")
position(17,23)
prompt("4")
position(19,23)
prompt("S")
position(20,23)
prompt("O")
position(22,23)
prompt("R")
setting("foreground",11)
position(8,24)
prompt("nlock user defined keys (default)")
position(9,24)
prompt("ock user defined keys")
position(11,24)
prompt("ultinational char set mode (default)")
position(12,24)
prompt("ational char set mode")
position(14,25)
prompt("- Cursor keys normal (default)")
position(15,25)
prompt("- Cursor keys, application")
position(16,25)
prompt("- Keypad numeric (default)")
position(17,25)
prompt("- Keypad, application")
position(19,24)
prompt("end both CR & LF with ENTER (default)")
position(20,24)
prompt("nly send CR with ENTER")
position(22,24)
prompt("eturn to previous menu")
position(24,20)
prompt("Press the first letter of the option to set")
label(292)
set string(S(0),"")
set flag(F(1),false)
position(24,18)
wait key(S(0),200)
length("/S(0)",I(0))
ifnot equal(I(0),1) branch(293)
if string match(S(0),"U") branch subroutine(294)
if flag(F(1)) branch(292)
if string match(S(0),"L") branch subroutine(296)
if flag(F(1)) branch(292)
if string match(S(0),"M") branch subroutine(298)
if flag(F(1)) branch(292)
if string match(S(0),"N") branch subroutine(300)
if flag(F(1)) branch(292)
if string match(S(0),"1") branch subroutine(302)
if flag(F(1)) branch(292)
if string match(S(0),"2") branch subroutine(304)
if flag(F(1)) branch(292)
if string match(S(0),"3") branch subroutine(306)
if flag(F(1)) branch(292)
if string match(S(0),"4") branch subroutine(308)
if flag(F(1)) branch(292)
if string match(S(0),"S") branch subroutine(310)
if flag(F(1)) branch(292)
if string match(S(0),"O") branch subroutine(312)
if flag(F(1)) branch(292)
if string match(S(0),"R") branch(320)
label(293)
prompt("/x07") ;Beep on error
branch(292)
label(294)
prompt("/x1B[2l") ;Unlock user defined keys
set flag(F(1),true)
return()
label(296)
prompt("/x1B[2h") ;Lock user defined keys
set flag(F(1),true)
return()
label(298)
prompt("/x1B[?42l") ;Set multinational character set mode
set flag(F(1),true)
return()
label(300)
prompt("/x1B[?42h") ;Set national character set mode
set flag(F(1),true)
return()
label(302)
prompt("/x1B[?1l") ;Set cursor keys normal
set flag(F(1),true)
return()
label(304)
prompt("/x1B[?1h") ;Set cursor keys application
set flag(F(1),true)
return()
label(306)
prompt("/x1B>") ;Set numeric keypad
set flag(F(1),true)
return()
label(308)
prompt("/x1B=") ;Set application keypad
set flag(F(1),true)
return()
label(310)
prompt("/x1B[20l") ;Send both CR & LF as new line
set flag(F(1),true)
return()
label(312)
prompt("/x1B[20h") ;Send only CR as new line
set flag(F(1),true)
return()
label(320)
set flag(F(0),true) ;Return to main menu
return()
label(330)
position(2,34)
prompt("HyperACCESS//5")
position(3,29)
prompt("Terminal Emulation Setup")
position(5,29)
prompt("VT52, VT100, VT200, VT320")
return()
label(350) ;Exit the VT's setup script
if flag(F(3)) prompt("/x1B[?2l") ;Set VT52 mode if selected
wipe screen()
position(1,1)
restore screen()
cursor restore()
end()