-
Notifications
You must be signed in to change notification settings - Fork 1
/
screen.src
executable file
·94 lines (82 loc) · 2.46 KB
/
screen.src
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
'##########################################################################
'
' screen utils
'
'##########################################################################
'$include:'bhtdef.inc'
'$include:'const.inc'
'$include:'screen.def'
'--------------------------------------------------------------------------
' init
'--------------------------------------------------------------------------
sub Screen.Init
power 180 ' auto power ON
out .pnBLCtrl, .pvBLOn ' backlight ON for 5 seconds
out .pnBLTime, 5
out .pnSysSts, .pvStsOn ' show system status
out .pnARKey,0 ' auto key repeat OFF
out .pnMgLng,.pvSysMSG ' Japanese message
screen Lc.SCR.KANJI,Lc.WAT.NORMAL
cls
end sub
'--------------------------------------------------------------------------
' footer
'--------------------------------------------------------------------------
sub Screen.Footer
'-- version
private v$: v$=APP.VERSION$
if v$="" then
v$="unknown"
end if
private prefix$:prefix$="v"
screen Lc.SCR.ANK,Lc.WAT.NORMAL
locate 1,12
private i%
private cnt%:cnt%=22-len(prefix$+v$)
for i%=1 to cnt%
print " ";
next
print prefix$+v$;
locate 1,12
private e%: e%=APP.ELAPSEDTIME%
if e%<>0 then
print APP.DEBUGMSG$;
print "-";
print mid$(str$(e%),2);
print "s";
end if
screen Lc.SCR.KANJI,Lc.WAT.NORMAL
end sub
'--------------------------------------------------------------------------
' footer Y/N
'--------------------------------------------------------------------------
sub Screen.FooterYesNo
locate 1,8
print "[M1]はい [M2]いいえ"
Screen.Footer
end sub
'--------------------------------------------------------------------------
' footer "hit any key"
'--------------------------------------------------------------------------
sub Screen.FooterInputOK
locate 1,8
'--print "...キーを押してください"
end sub
'--------------------------------------------------------------------------
' select item header
'--------------------------------------------------------------------------
sub Screen.HeaderUDLR(canUp%,canDown%)
locate 1,1
print "[";
if canUp%=1 then
print "▲";
else
print " ";
end if
if canDown%=1 then
print "▼";
else
print " ";
end if
print "]選 [ENT]確"
end sub