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
3ce47278
Commit
3ce47278
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
New property: aborted, reflects sys_status&SS_ABORT as a bool.
parent
e4431d2c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/js_console.cpp
+13
-1
13 additions, 1 deletion
src/sbbs3/js_console.cpp
with
13 additions
and
1 deletion
src/sbbs3/js_console.cpp
+
13
−
1
View file @
3ce47278
...
...
@@ -53,6 +53,7 @@ enum {
,
CON_PROP_QUESTION
,
CON_PROP_TIMEOUT
/* User inactivity timeout reference */
,
CON_PROP_TIMELEFT_WARN
/* low timeleft warning flag */
,
CON_PROP_ABORTED
,
CON_PROP_ABORTABLE
,
CON_PROP_TELNET_MODE
,
CON_PROP_CTRLKEY_PASSTHRU
...
...
@@ -95,6 +96,9 @@ static JSBool js_console_get(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
case
CON_PROP_TIMELEFT_WARN
:
val
=
sbbs
->
timeleft_warn
;
break
;
case
CON_PROP_ABORTED
:
val
=
BOOLEAN_TO_JSVAL
(
sbbs
->
sys_status
&
SS_ABORT
?
true
:
false
);
return
(
JS_TRUE
);
case
CON_PROP_ABORTABLE
:
val
=
sbbs
->
rio_abortable
;
break
;
...
...
@@ -168,6 +172,12 @@ static JSBool js_console_set(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
case
CON_PROP_TIMELEFT_WARN
:
sbbs
->
timeleft_warn
=
val
;
break
;
case
CON_PROP_ABORTED
:
if
(
val
)
sbbs
->
sys_status
|=
SS_ABORT
;
else
sbbs
->
sys_status
&=~
SS_ABORT
;
break
;
case
CON_PROP_ABORTABLE
:
sbbs
->
rio_abortable
=
val
?
true
:
false
;
// This is a dumb bool conversion to make BC++ happy
...
...
@@ -203,7 +213,8 @@ static struct JSPropertySpec js_console_properties[] = {
{
"autoterm"
,
CON_PROP_AUTOTERM
,
CON_PROP_FLAGS
,
NULL
,
NULL
},
{
"timeout"
,
CON_PROP_TIMEOUT
,
CON_PROP_FLAGS
,
NULL
,
NULL
},
{
"timeleft_warning"
,
CON_PROP_TIMELEFT_WARN
,
CON_PROP_FLAGS
,
NULL
,
NULL
},
{
"rio_abortable"
,
CON_PROP_ABORTABLE
,
CON_PROP_FLAGS
,
NULL
,
NULL
},
{
"aborted"
,
CON_PROP_ABORTED
,
CON_PROP_FLAGS
,
NULL
,
NULL
},
{
"abortable"
,
CON_PROP_ABORTABLE
,
CON_PROP_FLAGS
,
NULL
,
NULL
},
{
"telnet_mode"
,
CON_PROP_TELNET_MODE
,
CON_PROP_FLAGS
,
NULL
,
NULL
},
{
"wordwrap"
,
CON_PROP_WORDWRAP
,
JSPROP_ENUMERATE
|
JSPROP_READONLY
,
NULL
,
NULL
},
{
"question"
,
CON_PROP_QUESTION
,
CON_PROP_FLAGS
,
NULL
,
NULL
},
...
...
@@ -221,6 +232,7 @@ static char* con_prop_desc[] = {
,
"automatically detected terminal settings (see USER_* in sbbsdefs.js for bit definitions)"
,
"user inactivity timeout reference"
,
"low timeleft warning flag"
,
"input/output has been aborted"
,
"output can be aborted with Ctrl-C"
,
"current telnet mode (see TELNET_MODE_* in sbbsdefs.js for valid values)"
,
"word-wrap buffer (used by getstr)"
...
...
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