Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
de35bc2c
Commit
de35bc2c
authored
May 26, 2021
by
Deucе
👌🏾
Browse files
Only add accessible programs to the xtrn list
parent
2931bdc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
exec/lbshell.js
exec/lbshell.js
+4
-2
No files found.
exec/lbshell.js
View file @
de35bc2c
...
...
@@ -535,8 +535,10 @@ function Xtrnsec(sec)
this
.
ypos
=
console
.
screen_rows
-
j
-
1
;
this
.
xpos
=
40
-
xtrnsecprogwidth
-
2
;
this
.
add
(
"
\
xda
"
+
bars80
.
substr
(
0
,
xtrnsecprogwidth
)
+
"
\
xbf
"
,
undefined
,
undefined
,
""
,
""
);
for
(
j
=
0
;
j
<
xtrn_area
.
sec_list
[
sec
].
prog_list
.
length
&&
j
<
console
.
screen_rows
-
3
;
j
++
)
this
.
add
(
"
|
"
+
hotkeys
.
substr
(
j
,
1
)
+
"
"
+
xtrn_area
.
sec_list
[
sec
].
prog_list
[
j
].
name
,
j
.
toString
(),
xtrnsecprogwidth
);
for
(
j
=
0
;
j
<
xtrn_area
.
sec_list
[
sec
].
prog_list
.
length
&&
j
<
console
.
screen_rows
-
3
;
j
++
)
{
if
(
xtrn_area
.
sec_list
[
sec
].
prog_list
[
j
].
can_access
)
this
.
add
(
"
|
"
+
hotkeys
.
substr
(
j
,
1
)
+
"
"
+
xtrn_area
.
sec_list
[
sec
].
prog_list
[
j
].
name
,
j
.
toString
(),
xtrnsecprogwidth
);
}
this
.
add
(
"
\
xc0
"
+
bars80
.
substr
(
0
,
xtrnsecprogwidth
)
+
"
\
xd9
"
,
undefined
,
undefined
,
""
,
""
);
}
Xtrnsec
.
prototype
=
ShellLB
.
prototype
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment