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
b9692cfd
Commit
b9692cfd
authored
16 years ago
by
deuce
Browse files
Options
Downloads
Patches
Plain Diff
Add IC and CUU tests
parent
6e9ed5e6
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
exec/irc.js
+8
-0
8 additions, 0 deletions
exec/irc.js
exec/termtest.js
+24
-0
24 additions, 0 deletions
exec/termtest.js
exec/typehtml.js
+13
-12
13 additions, 12 deletions
exec/typehtml.js
exec/xjs_handler.js
+4
-3
4 additions, 3 deletions
exec/xjs_handler.js
with
49 additions
and
15 deletions
exec/irc.js
+
8
−
0
View file @
b9692cfd
...
@@ -6,6 +6,14 @@
...
@@ -6,6 +6,14 @@
// $Id$
// $Id$
// disable auto-termination.
// disable auto-termination.
var
old_auto_terminate
=
js
.
auto_terminate
;
function
restore_auto_terminate
()
{
js
.
auto_terminate
=
old_auto_terminate
;
}
js
.
on_exit
(
"
restore_auto_terminate
"
);
js
.
auto_terminate
=
false
;
js
.
auto_terminate
=
false
;
const
REVISION
=
"
$Revision$
"
.
split
(
'
'
)[
1
];
const
REVISION
=
"
$Revision$
"
.
split
(
'
'
)[
1
];
...
...
This diff is collapsed.
Click to expand it.
exec/termtest.js
+
24
−
0
View file @
b9692cfd
...
@@ -514,12 +514,36 @@ function test_ctrl_seqs(results)
...
@@ -514,12 +514,36 @@ function test_ctrl_seqs(results)
/* No intermediate bytes */
/* No intermediate bytes */
"
ICH
"
:{
"
ICH
"
:{
char
:
"
@
"
,
char
:
"
@
"
,
test
:
function
(
results
)
{
if
(
results
.
ctrl
.
BS
)
{
console
.
writeln
(
"
InsertCharTest
\
b
\
b
\
b
\
b
\
033[@
\
b
\
b
\
b
\
b
\
033[@
"
);
return
(
console
.
yesno
(
'
Are there spaces in "Insert Char Test"
'
));
}
return
(
null
);
},
},
},
"
CUU
"
:{
"
CUU
"
:{
char
:
"
A
"
,
char
:
"
A
"
,
test
:
function
(
results
)
{
console
.
writeln
(
"
Line 1
"
);
console
.
crlf
();
console
.
writeln
(
"
\
033[ALine 2
"
);
console
.
crlf
();
console
.
crlf
();
console
.
writeln
(
"
\
033[2ALine 3
"
);
console
.
writeln
(
"
Line 4
"
);
return
(
console
.
yesno
(
'
Does "Line 1" to "Line 4" line up with no gaps
'
));
}
},
},
"
CUD
"
:{
"
CUD
"
:{
char
:
"
B
"
,
char
:
"
B
"
,
test
:
function
(
results
)
{
if
(
results
.
ctrl_seqs
.
CUU
)
{
}
else
if
(
results
.
ctrl
.
FF
)
{
}
return
(
null
);
}
},
},
"
CUF
"
:{
"
CUF
"
:{
char
:
"
C
"
,
char
:
"
C
"
,
...
...
This diff is collapsed.
Click to expand it.
exec/typehtml.js
+
13
−
12
View file @
b9692cfd
...
@@ -8,22 +8,23 @@
...
@@ -8,22 +8,23 @@
load
(
"
sbbsdefs.js
"
);
// USER_HTML
load
(
"
sbbsdefs.js
"
);
// USER_HTML
var
NORMAL
=
"
\
1N
\
1H
"
var
NORMAL
=
"
\
1N
\
1H
"
;
var
HEADING1
=
"
\
1H
\
1Y
"
var
HEADING1
=
"
\
1H
\
1Y
"
;
var
HEADING2
=
"
\
1H
\
1C
"
var
HEADING2
=
"
\
1H
\
1C
"
;
var
HEADING3
=
"
\
1H
\
1M
"
var
HEADING3
=
"
\
1H
\
1M
"
;
var
HEADING4
=
"
\
1H
\
1G
"
var
HEADING4
=
"
\
1H
\
1G
"
;
var
HEADING5
=
"
\
1H
\
1B
"
var
HEADING5
=
"
\
1H
\
1B
"
;
var
HEADING6
=
"
\
1H
\
1R
"
var
HEADING6
=
"
\
1H
\
1R
"
;
var
BOLD
=
"
\
1H
\
1C
\
x014
"
var
BOLD
=
"
\
1H
\
1C
\
x014
"
;
var
ITALIC
=
"
\
1H
\
1G
\
x012
"
var
ITALIC
=
"
\
1H
\
1G
\
x012
"
;
var
UNDERLINE
=
"
\
1H
\
1W
\
x016
"
var
UNDERLINE
=
"
\
1H
\
1W
\
x016
"
;
var
STRIKE_THROUGH
=
"
\
1N
\
1K
\
x017
"
var
STRIKE_THROUGH
=
"
\
1N
\
1K
\
x017
"
;
var
LIST_ITEM
=
"
\
1N
\r\n
\
1H
\
1Wo
\
1G
"
var
LIST_ITEM
=
"
\
1N
\r\n
\
1H
\
1Wo
\
1G
"
;
var
f
;
var
f
;
var
mono
=
true
;
var
mono
=
true
;
var
i
;
var
i
;
var
buf
;
for
(
i
in
argv
)
{
for
(
i
in
argv
)
{
switch
(
argv
[
i
].
toLowerCase
())
{
switch
(
argv
[
i
].
toLowerCase
())
{
...
...
This diff is collapsed.
Click to expand it.
exec/xjs_handler.js
+
4
−
3
View file @
b9692cfd
...
@@ -4,15 +4,13 @@
...
@@ -4,15 +4,13 @@
var
xjs_filename
;
var
xjs_filename
;
if
(
this
.
http_request
!=
undefined
)
/* Requested through web-server */
if
(
this
.
http_request
!=
=
undefined
)
/* Requested through web-server */
xjs_filename
=
http_request
.
real_path
;
xjs_filename
=
http_request
.
real_path
;
else
else
xjs_filename
=
argv
[
0
];
xjs_filename
=
argv
[
0
];
var
cwd
=
''
;
var
cwd
=
''
;
xjs_load
(
xjs_filename
);
function
xjs_compile
(
filename
)
{
function
xjs_compile
(
filename
)
{
if
(
cwd
!=
''
)
{
if
(
cwd
!=
''
)
{
if
(
filename
.
search
(
/^
((\/)
|
([
A-Za-z
]
:
[\/\\]))
/
)
==-
1
)
if
(
filename
.
search
(
/^
((\/)
|
([
A-Za-z
]
:
[\/\\]))
/
)
==-
1
)
...
@@ -111,3 +109,6 @@ function xjs_load(filename)
...
@@ -111,3 +109,6 @@ function xjs_load(filename)
load
(
xjs_compile
(
filename
));
load
(
xjs_compile
(
filename
));
cwd
=
old_cwd
;
cwd
=
old_cwd
;
}
}
xjs_load
(
xjs_filename
);
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