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
ff7a78ea
Commit
ff7a78ea
authored
Apr 21, 2020
by
echicken
Browse files
Set info_frame.word_wrap = true;
Removed call to word_wrap.
parent
fb701264
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
exec/ftn-setup.js
exec/ftn-setup.js
+3
-5
No files found.
exec/ftn-setup.js
View file @
ff7a78ea
...
...
@@ -20,6 +20,7 @@ const frame = new Frame(1, 1, console.screen_columns, console.screen_rows, BG_BL
const
main_frame
=
new
Frame
(
1
,
2
,
frame
.
width
,
frame
.
height
-
2
,
BG_BLACK
|
LIGHTGRAY
,
frame
);
const
tree_frame
=
new
Frame
(
1
,
main_frame
.
y
+
1
,
Math
.
floor
(
main_frame
.
width
/
2
),
main_frame
.
height
-
2
,
BG_BLACK
|
LIGHTGRAY
,
main_frame
);
const
info_frame
=
new
Frame
(
tree_frame
.
width
+
1
,
main_frame
.
y
+
1
,
main_frame
.
width
-
tree_frame
.
width
-
1
,
main_frame
.
height
-
2
,
BG_BLACK
|
WHITE
,
main_frame
);
info_frame
.
word_wrap
=
true
;
const
tree
=
new
Tree
(
tree_frame
);
frame
.
putmsg
(
'
FTN Setup
'
);
...
...
@@ -40,10 +41,7 @@ if (f.open('r')) {
const
zone
=
e
.
substr
(
5
);
const
item
=
tree
.
addItem
(
format
(
'
Zone %5d: %s
'
,
zone
,
net
.
name
),
function
()
{
console
.
clear
(
BG_BLACK
|
LIGHTGRAY
);
var
result
=
js
.
exec
(
'
init-fidonet.js
'
,
{},
zone
);
if
(
result
&&
!
console
.
aborted
)
alert
(
result
);
console
.
pause
();
js
.
exec
(
'
init-fidonet.js
'
,
{},
zone
);
frame
.
invalidate
();
});
if
(
item
.
text
.
length
>
longest
)
longest
=
item
.
text
.
length
;
...
...
@@ -73,7 +71,7 @@ while (!js.terminated) {
zone
=
tree
.
currentItem
.
__ftn_setup
;
info_frame
.
clear
();
info_frame
.
putmsg
(
'
\
1h
\
1w
'
+
zone
.
name
+
'
\r\n
'
);
if
(
zone
.
desc
)
info_frame
.
putmsg
(
'
\
1n
\
1w
'
+
word_wrap
(
zone
.
desc
,
info_frame
.
width
)
+
'
\r\n
'
);
if
(
zone
.
desc
)
info_frame
.
putmsg
(
'
\
1n
\
1w
'
+
zone
.
desc
+
'
\r\n
\r\n
'
);
if
(
zone
.
info
)
info_frame
.
putmsg
(
'
\
1h
\
1cInformation
\
1w:
\r\n\
1n
'
+
zone
.
info
+
'
\r\n\r\n
'
);
if
(
zone
.
coord
)
info_frame
.
putmsg
(
'
\
1h
\
1cCoordinator
\
1w:
\r\n\
1n
'
+
zone
.
coord
+
'
\r\n\r\n
'
);
if
(
zone
.
email
)
info_frame
.
putmsg
(
'
\
1h
\
1cEmail
\
1w:
\r\n\
1n
'
+
zone
.
email
+
'
\r\n\r\n
'
);
...
...
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