-
src/sbbs3/js_console.cpp
From
rswindell@1:103/705 to
CVS commit on Sun Jan 7 15:15:58 2018
src/sbbs3 js_console.cpp 1.109 1.110
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv7998
Modified Files:
js_console.cpp
Log Message:
JSDOC update (typos)
--- SBBSecho 3.03-Win32
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Sun Jan 14 18:33:24 2018
src/sbbs3 js_console.cpp 1.111 1.112
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv8416
Modified Files:
js_console.cpp
Log Message:
Add JS console property: last_line_length
- useful for determining the length of the previously printed full line (before
a carriage return or line-wrap)
- used internally for accurate line counting and blank line detection
--- SBBSecho 3.03-Win32
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Sat Feb 3 15:42:15 2018
src/sbbs3 js_console.cpp 1.112 1.113
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv14021
Modified Files:
js_console.cpp
Log Message:
The detected CTerm version is stored in JS console.cterm_version in the form major *1000 + minor.
console.telnet_cmd() now accepts an optional 3rd argument, timeout (default 0) which if non-zero will wait for an acknowledgement from the Telnet peer.
--- SBBSecho 3.03-Win32
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
deuce@1:103/705 to
CVS commit on Wed Mar 21 10:41:54 2018
src/sbbs3 js_console.cpp 1.115 1.116
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv7909
Modified Files:
js_console.cpp
Log Message:
Document the cterm_version property to unbreak jsdocs.
--- SBBSecho 3.03-Win32
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Sat Jul 28 21:57:34 2018
src/sbbs3 js_console.cpp 1.117 1.118
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv8781
Modified Files:
js_console.cpp
Log Message:
Document (in jsdocs) the new history argument to console.getstr()
--- SBBSecho 3.05-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Thu Oct 25 20:23:56 2018
src/sbbs3 js_console.cpp 1.120 1.121
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv18542
Modified Files:
js_console.cpp
Log Message:
console.printfile() and printtail() now return Boolean.
--- SBBSecho 3.06-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Mon Jan 14 22:54:37 2019
src/sbbs3 js_console.cpp 1.122 1.123
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv13251
Modified Files:
js_console.cpp
Log Message:
Fixed typo in JSDOCS description of console.putbyte().
--- SBBSecho 3.06-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Fri Jul 26 17:28:49 2019
src/sbbs3 js_console.cpp 1.132 1.133
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv8545
Modified Files:
js_console.cpp
Log Message:
Added support to console.print() for an optional P_* mode argument. Must
be called as console.print(string, number), the number will be interpretted
as the P_* mode flags value. Otherwise, all arguments are converted to strings and printed (as before).
If anyone was calling console.print(string, number), they will get different behavior now. I couldn't find any evidence of anyone using this syntax for console.print(), so I think this should be okay.
Only a limited set of P_* flags are supported (e.g. P_PETSCII, P_UTF8) - far fewer than console.putmsg(), but console.putmsg() is much more heavy weight
and supports a lot more "features" likely to interfere with the expected user output. In general, try to use console.putmsg() only when printing multi-line text strings or when @-code expansion is needed. Otherwise, console.print()
is usually better.
--- SBBSecho 3.08-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Sat Aug 3 14:27:03 2019
src/sbbs3 js_console.cpp 1.133 1.134
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv31910
Modified Files:
js_console.cpp
Log Message:
Don't use angle-brackets in JSDOCS to avoid HTML issues.
I plan to convert all these to wiki-syntax eventually anyway.
--- SBBSecho 3.08-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Sun Mar 1 18:39:26 2020
src/sbbs3 js_console.cpp 1.142 1.143
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv733
Modified Files:
js_console.cpp
Log Message:
A couple JSDOCS method description updates.
--- SBBSecho 3.10-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Thu Mar 19 01:15:17 2020
src/sbbs3 js_console.cpp 1.143 1.144
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv14783
Modified Files:
js_console.cpp
Log Message:
console.getkeys() had a couple of bugs:
- you couldn't specify a maxnum value of 0 (it would get overridden to ~0)
- you couldn't specify a mode argument value without also specifying a non-zero
maxnum value
--- SBBSecho 3.10-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Mon Apr 6 13:10:12 2020
src/sbbs3 js_console.cpp 1.144 1.145
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv30015
Modified Files:
js_console.cpp
Log Message:
Fix bug introduced in rev 1.142 with the additional/optional arguments to the yesno() and noyes() methods:
We need to check the argument count before using the second (optional)
argument or else it has some garbage/left-over value from some previous JS function call. And no, just increasing the argument count in the method table isn't enough. :-(
Reported by echicken and DaiTengu, thanks!
--- SBBSecho 3.10-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Thu May 7 22:23:38 2020
src/sbbs3 js_console.cpp 1.147 1.148
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/home/rswindell/sbbs/src/sbbs3
Modified Files:
js_console.cpp
Log Message:
Resolve GCC warning: unused variable 'argv'
--- SBBSecho 3.11-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Sat May 9 16:56:13 2020
src/sbbs3 js_console.cpp 1.150 1.151
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv30941
Modified Files:
js_console.cpp
Log Message:
Fix the missing "hungry" argument thing caught by GCC.
--- SBBSecho 3.11-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Tue May 12 12:06:07 2020
src/sbbs3 js_console.cpp 1.151 1.152
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv16716
Modified Files:
js_console.cpp
Log Message:
As part of the rev 1.147 (add mouse hot sport support) commit, I made what I thought was a harmless change to the JS console.clear() implementation, I changed the call to sbbs->CLS to sbbs->clearscreen(). The sbbs->CLS macro calls
outchar(FF) which check the line-counter and does the auto-pause before screen-clear. A direct call to sbbs->clearscreen() does not.
Just in case someone actually wants the new (but unexpected behavior), I added an optional boolean parameter to console.clear(), autopause (default to true). Pass false if you want to defeat the autopause functionality. This should be effectively the same as setting the console.line_counter = 0 before calling console.clear(), but it also totally bypasses sbbs_t::outchar,
so there could be other differences I'm not thinking of.
Anyway, this fixes the lack of auto-screen pauses in JS mods recently introduced.
--- SBBSecho 3.11-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
rswindell@1:103/705 to
CVS commit on Sun May 24 01:16:52 2020
src/sbbs3 js_console.cpp 1.153 1.154
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv23820
Modified Files:
js_console.cpp
Log Message:
Addd console.mouse_mode (bit-field) property for visibility/control of sbbs internal ANSI-mouse-reporting mode flags (should not normally need to set this).
console.getxy() now works with non-ANSI terminals and returns false if for some
reason the request fails (e.g. ANSI cursor position report timeout).
--- SBBSecho 3.11-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
Rob Swindell@1:103/705 to
Git commit to sbbs/master on Sun Sep 13 12:37:10 2020
https://gitlab.synchro.net/sbbs/sbbs/-/commit/ac3d31739f4048706ec50148
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
Fixes to printfile and printtail methodsThrow an exception if no filename is specified (rather than just abort thescript by returning JS_FALSE).The return value is supposed to be a bool, not an int (JS_TRUE != JSVAL_TRUE).
--- SBBSecho 3.11-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
Rob Swindell@1:103/705 to
Git commit to sbbs/master on Fri Nov 6 20:02:11 2020
-
From
Rob Swindell@1:103/705 to
Git commit to main/sbbs/master on Sun Apr 4 15:13:57 2021
-
From
Rob Swindell@1:103/705 to
Git commit to main/sbbs/master on Sat Jun 11 14:30:02 2022
https://gitlab.synchro.net/main/sbbs/-/commit/22f3aa787318183e0a3f5a11
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
Add console.progress() methodThis exposes the Synchronet internal sbbs_t::progress() method used todisplay a progress indication bar, e.g. "[ Scanning 10.0% ]" with the barbackfill effect (when supported by the terminal). --- SBBSecho 3.15-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
Rob Swindell@1:103/705 to
Git commit to main/sbbs/master on Tue Jun 14 22:30:42 2022
-
From
Deucе@1:103/705 to
Git commit to main/sbbs/master on Thu Dec 29 10:06:57 2022
-
From
Rob Swindell@1:103/705 to
Git commit to main/sbbs/master on Thu Dec 29 12:48:49 2022
-
From
Rob Swindell (on Windows)@1:103/705 to
Git commit to main/sbbs/master on Mon Mar 27 17:59:21 2023
-
From
Rob Swindell (on Windows)@1:103/705 to
Git commit to main/sbbs/master on Sat Sep 16 23:34:48 2023
https://gitlab.synchro.net/main/sbbs/-/commit/f28c4bc94a89a0ea117481f8
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
If console.uselect() is called just with the number argument, use as defaultThis allows the calling script to control what the default item is (when
theuser just hits enter), and not always the first item.Fixes issue #637
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
Rob Swindell (on Windows 11)@1:103/705 to
Git commit to main/sbbs/master on Sun Nov 12 16:47:50 2023
https://gitlab.synchro.net/main/sbbs/-/commit/7073d7201a654627af28ba67
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
Rename console.crlf() to console.newline(), leaving crlf() as an alias
Also use sbbs_t::newline() as the underlying implementation of console.newline() rather than a hard-coded CR/LF output loop.
Added new console methods:
cond_newline() - equivalent of Ctrl-A/
cond_blankline() - equivlaent of Ctrl-A?
cond_contline() - equivalent of Ctrl-A\
... so a JS script author doesn't have to output Ctrl-A codes to invoke those functions.
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
Rob Swindell (on Windows 11)@1:103/705 to
Git commit to main/sbbs/master on Sun Nov 12 16:47:50 2023
https://gitlab.synchro.net/main/sbbs/-/commit/84ccf98943ba61032776ad80
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
Add console.linefeed() method - for completionism
Seriously though, this doesn't always do the same thing as outputting a '\n' (e.g. in PETSCII mode, it sends a "cursor down" (17) control character).
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
Rob Swindell (on Debian Linux)@1:103/705 to
Git commit to main/sbbs/master on Mon Nov 13 16:58:05 2023
-
From
Rob Swindell (on Windows 11)@1:103/705 to
Git commit to main/sbbs/master on Fri Feb 16 18:17:02 2024
https://gitlab.synchro.net/main/sbbs/-/commit/862753d6c8fca2a71d1d000a
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
New console property: unicode_zerowidth (either 0 or 1)
The column-width of UNICODE 'zero-width' character is now autodetected. This property allows one to use/change this autodetected width (normally 0 or 1). --- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
Rob Swindell (on Windows 11)@1:103/705 to
Git commit to main/sbbs/master on Sat Mar 23 17:11:55 2024
-
From
Rob Swindell (on Windows 11)@1:103/705 to
Git commit to main/sbbs/master on Tue Aug 6 18:11:10 2024
https://gitlab.synchro.net/main/sbbs/-/commit/049c18c41a02cf6a6934ecd5
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
Fix potential null object pointer passed to JS_GetProperty in js_gotoxy()
I'm not sure under what script conditions this could happen, but apparently Nelgin was able to produce this null pointer deref (and segfault) using DDMsgReader. This should fix issue #769
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
Rob Swindell (on Debian Linux)@1:103/705 to
Git commit to main/sbbs/master on Tue Aug 6 18:27:43 2024
https://gitlab.synchro.net/main/sbbs/-/commit/a2d6dc86b0b09664a1782cb6
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
Better invalid argument reporting (null object) from js_gotoxy()
The calling script will still terminate if it does this, but at least the caller will get a useful JS exception.
Related to fix for issue #769
--- SBBSecho 3.20-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
Rob Swindell (on Windows 11)@1:103/705 to
Git commit to main/sbbs/master on Fri Dec 6 17:38:28 2024
https://gitlab.synchro.net/main/sbbs/-/commit/097e0162ab78524539fea92c
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
Parse console.inkey() timeout parameter as an *unsigned* integer
A negative timeout value doesn't make sense and this will extend the legal (positive) range of this parameter value.
Hopefully this will help eliminate these errors I get often:
dd_lightbar_menu.js line 4041: Error: can't convert inputTimeoutMS to an
integer
But if there's some way that this parameter value is even out of the range of an unsigned 32-bit value (4294967295) then this error could still happen. Unfortunately, the JS exception doesn't report the value that failed to convert.
--- SBBSecho 3.23-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
Rob Swindell (on Debian Linux)@1:103/705 to
Git commit to main/sbbs/master on Sat Jan 25 17:23:49 2025
https://gitlab.synchro.net/main/sbbs/-/commit/484706a8ba4fd641267db20a
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
Add getkey_inactivity_warning property (alias: inactivity warning)
Configured duration in seconds before warning about pending disconnection due to
user/keyboard inactivity (or 0 if disabled).
--- SBBSecho 3.23-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
-
From
Rob Swindell (on Windows 11)@1:103/705 to
Git commit to main/sbbs/master on Sat Jan 25 17:49:48 2025