Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
aa0626a9
Commit
aa0626a9
authored
19 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Allow left/right arrow to move to next main item from sub-sub-menus.
parent
92aaba58
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/lbshell.js
+24
-5
24 additions, 5 deletions
exec/lbshell.js
with
24 additions
and
5 deletions
exec/lbshell.js
+
24
−
5
View file @
aa0626a9
...
@@ -47,7 +47,7 @@ mainbar.add("|File","F",undefined,undefined,undefined,user.compare_ars("REST T")
...
@@ -47,7 +47,7 @@ mainbar.add("|File","F",undefined,undefined,undefined,user.compare_ars("REST T")
fileinfo
.
ypos
=
4
;
fileinfo
.
ypos
=
4
;
fileinfo
.
lpadding
=
"
\
xb3
"
;
fileinfo
.
lpadding
=
"
\
xb3
"
;
fileinfo
.
rpadding
=
"
\
xb3
"
;
fileinfo
.
rpadding
=
"
\
xb3
"
;
fileinfo
.
hotkeys
=
KEY_LEFT
+
"
\
b
\
x7f
\
x1b
"
;
fileinfo
.
hotkeys
=
KEY_LEFT
+
KEY_RIGHT
+
"
\
b
\
x7f
\
x1b
"
;
fileinfo
.
add
(
"
\
xda
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xbf
"
,
undefined
,
undefined
,
""
,
""
);
fileinfo
.
add
(
"
\
xda
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xbf
"
,
undefined
,
undefined
,
""
,
""
);
fileinfo
.
add
(
"
File |Transfer Policy
"
,
"
T
"
,
32
);
fileinfo
.
add
(
"
File |Transfer Policy
"
,
"
T
"
,
32
);
fileinfo
.
add
(
"
Information on Current |Directory
"
,
"
D
"
,
32
);
fileinfo
.
add
(
"
Information on Current |Directory
"
,
"
D
"
,
32
);
...
@@ -82,7 +82,7 @@ mainbar.add("|Settings","S");
...
@@ -82,7 +82,7 @@ mainbar.add("|Settings","S");
xfercfgmenu
.
ypos
=
6
;
xfercfgmenu
.
ypos
=
6
;
xfercfgmenu
.
lpadding
=
"
\
xb3
"
;
xfercfgmenu
.
lpadding
=
"
\
xb3
"
;
xfercfgmenu
.
rpadding
=
"
\
xb3
"
;
xfercfgmenu
.
rpadding
=
"
\
xb3
"
;
xfercfgmenu
.
hotkeys
=
KEY_LEFT
+
"
\
b
\
x7f
\
x1b
"
;
xfercfgmenu
.
hotkeys
=
KEY_LEFT
+
KEY_RIGHT
+
"
\
b
\
x7f
\
x1b
"
;
xfercfgmenu
.
add
(
"
\
xda
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xbf
"
,
undefined
,
undefined
,
""
,
""
);
xfercfgmenu
.
add
(
"
\
xda
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xbf
"
,
undefined
,
undefined
,
""
,
""
);
xfercfgmenu
.
add
(
"
|Set New Scan Time
"
,
"
S
"
,
28
);
xfercfgmenu
.
add
(
"
|Set New Scan Time
"
,
"
S
"
,
28
);
xfercfgmenu
.
add
(
"
Toggle |Batch Flag
"
,
"
B
"
,
28
);
xfercfgmenu
.
add
(
"
Toggle |Batch Flag
"
,
"
B
"
,
28
);
...
@@ -166,7 +166,7 @@ mainbar.add("E|xternals","x",undefined,undefined,undefined,user.compare_ars("RES
...
@@ -166,7 +166,7 @@ mainbar.add("E|xternals","x",undefined,undefined,undefined,user.compare_ars("RES
xtrnsecwidth
=
xtrn_area
.
sec_list
[
j
].
name
.
length
;
xtrnsecwidth
=
xtrn_area
.
sec_list
[
j
].
name
.
length
;
// Generate the menu for each section
// Generate the menu for each section
xtrnsecs
[
j
]
=
new
Lightbar
;
xtrnsecs
[
j
]
=
new
Lightbar
;
xtrnsecs
[
j
].
hotkeys
=
KEY_RIGHT
+
"
\
b
\
x7f
\
x1b
"
;
xtrnsecs
[
j
].
hotkeys
=
KEY_RIGHT
+
KEY_LEFT
+
"
\
b
\
x7f
\
x1b
"
;
for
(
k
=
0
;
k
<
xtrn_area
.
sec_list
[
j
].
prog_list
.
length
;
k
++
)
{
for
(
k
=
0
;
k
<
xtrn_area
.
sec_list
[
j
].
prog_list
.
length
;
k
++
)
{
if
(
xtrn_area
.
sec_list
[
j
].
prog_list
[
k
].
name
.
length
>
xtrnsecprogwidth
)
if
(
xtrn_area
.
sec_list
[
j
].
prog_list
[
k
].
name
.
length
>
xtrnsecprogwidth
)
xtrnsecprogwidth
=
xtrn_area
.
sec_list
[
j
].
prog_list
[
k
].
name
.
length
;
xtrnsecprogwidth
=
xtrn_area
.
sec_list
[
j
].
prog_list
[
k
].
name
.
length
;
...
@@ -210,7 +210,7 @@ mainbar.add("|Info","I");
...
@@ -210,7 +210,7 @@ mainbar.add("|Info","I");
userlists
.
ypos
=
6
;
userlists
.
ypos
=
6
;
userlists
.
lpadding
=
"
\
xb3
"
;
userlists
.
lpadding
=
"
\
xb3
"
;
userlists
.
rpadding
=
"
\
xb3
"
;
userlists
.
rpadding
=
"
\
xb3
"
;
userlists
.
hotkeys
=
KEY_RIGHT
+
"
\
b
\
x7f
\
x1b
"
;
userlists
.
hotkeys
=
KEY_RIGHT
+
KEY_LEFT
+
"
\
b
\
x7f
\
x1b
"
;
userlists
.
add
(
"
\
xda
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xbf
"
,
undefined
,
undefined
,
""
,
""
);
userlists
.
add
(
"
\
xda
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xc4
\
xbf
"
,
undefined
,
undefined
,
""
,
""
);
userlists
.
add
(
"
|Logons Today
"
,
"
L
"
,
12
);
userlists
.
add
(
"
|Logons Today
"
,
"
L
"
,
12
);
userlists
.
add
(
"
|Sub-Board
"
,
"
S
"
,
12
);
userlists
.
add
(
"
|Sub-Board
"
,
"
S
"
,
12
);
...
@@ -360,6 +360,11 @@ while(1) {
...
@@ -360,6 +360,11 @@ while(1) {
bbs
.
list_users
(
UL_DIR
);
bbs
.
list_users
(
UL_DIR
);
console
.
pause
();
console
.
pause
();
break
;
break
;
case
KEY_RIGHT
:
main_right
();
info_done
=
1
;
done
=
1
;
break
;
case
KEY_LEFT
:
case
KEY_LEFT
:
case
'
\
b
'
:
case
'
\
b
'
:
case
'
\
x7f
'
:
case
'
\
x7f
'
:
...
@@ -659,6 +664,11 @@ while(1) {
...
@@ -659,6 +664,11 @@ while(1) {
case
'
E
'
:
case
'
E
'
:
user
.
settings
^=
USER_EXTDESC
;
user
.
settings
^=
USER_EXTDESC
;
break
;
break
;
case
KEY_RIGHT
:
main_right
();
xfercfgdone
=
1
;
done
=
1
;
break
;
case
KEY_LEFT
:
case
KEY_LEFT
:
case
'
\
b
'
:
case
'
\
b
'
:
case
'
\
x7f
'
:
case
'
\
x7f
'
:
...
@@ -1009,7 +1019,8 @@ while(1) {
...
@@ -1009,7 +1019,8 @@ while(1) {
var
curr_xtrnsec
=
0
;
var
curr_xtrnsec
=
0
;
var
x_sec
;
var
x_sec
;
var
x_prog
;
var
x_prog
;
while
(
1
)
{
done
=
false
;
while
(
!
done
)
{
x_sec
=
xtrnsec
.
getval
();
x_sec
=
xtrnsec
.
getval
();
if
(
x_sec
==
KEY_LEFT
)
if
(
x_sec
==
KEY_LEFT
)
x_sec
=
xtrnsec
.
current
-
1
;
x_sec
=
xtrnsec
.
current
-
1
;
...
@@ -1023,6 +1034,11 @@ while(1) {
...
@@ -1023,6 +1034,11 @@ while(1) {
curr_xtrnsec
=
parseInt
(
x_sec
);
curr_xtrnsec
=
parseInt
(
x_sec
);
while
(
1
)
{
while
(
1
)
{
x_prog
=
xtrnsecs
[
curr_xtrnsec
].
getval
();
x_prog
=
xtrnsecs
[
curr_xtrnsec
].
getval
();
if
(
x_prog
==
KEY_LEFT
)
{
main_left
();
done
=
1
;
break
;
}
if
(
x_prog
==
KEY_RIGHT
)
if
(
x_prog
==
KEY_RIGHT
)
break
;
break
;
if
(
x_prog
==
'
\
b
'
||
x_prog
==
'
\
x7f
'
||
x_prog
==
'
\
x1b
'
)
if
(
x_prog
==
'
\
b
'
||
x_prog
==
'
\
x7f
'
||
x_prog
==
'
\
x1b
'
)
...
@@ -1073,6 +1089,9 @@ while(1) {
...
@@ -1073,6 +1089,9 @@ while(1) {
case
'
U
'
:
case
'
U
'
:
userlistloop
:
while
(
1
)
{
userlistloop
:
while
(
1
)
{
switch
(
userlists
.
getval
())
{
switch
(
userlists
.
getval
())
{
case
KEY_LEFT
:
main_left
();
break
infoloop
;
case
KEY_RIGHT
:
case
KEY_RIGHT
:
case
'
\
b
'
:
case
'
\
b
'
:
case
'
\
x7f
'
:
case
'
\
x7f
'
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment