-
src/sbbs3/js_console.cpp
From
rswindell@VERT to
CVS commit on Wednesday, February 12, 2014 16:04:01
src/sbbs3 js_console.cpp 1.106 1.107
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv20151
Modified Files:
js_console.cpp
Log Message:
Bug-fix: console.clearkeybuffer() only removed keys which were manually placed in the keyboard buffer (e.g. via console.ungetstr()) and not any keys (bytes) which had been received from the remote terminal. Now this method will clear both the "keybuf" (used for ungetkey/ungetstr keys) and the receive byte buffer (sbbs.inbuf).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Monday, August 31, 2015 20:17:53
src/sbbs3 js_console.cpp 1.107 1.108
Update of /cvsroot/sbbs/src/sbbs3
In directory cvs:/tmp/cvs-serv13002
Modified Files:
js_console.cpp
Log Message:
Fix; console.ansi() with the "current_attribute" argument (2nd arg) specified never worked.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Sunday, January 07, 2018 15:15:58
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)
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sunday, January 14, 2018 18:33:24
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
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Saturday, February 03, 2018 15:42:15
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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Wednesday, March 21, 2018 10:41:54
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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Saturday, July 28, 2018 21:57:34
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()
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Thursday, October 25, 2018 20:23:56
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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Monday, January 14, 2019 22:54:37
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().
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Friday, July 26, 2019 17:28:49
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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Saturday, August 03, 2019 14:27:03
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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sunday, March 01, 2020 18:39:26
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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Thursday, March 19, 2020 01:15:17
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
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Monday, April 06, 2020 13:10:12
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!
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Thursday, May 07, 2020 22:23:38
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'
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Saturday, May 09, 2020 16:56:13
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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Tuesday, May 12, 2020 12:06:07
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.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sunday, May 24, 2020 01:16:52
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).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to sbbs/master on Sunday, September 13, 2020 12:37:10
https://gitlab.synchro.net/sbbs/sbbs/-/commit/ac3d31739f4048706ec50148
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
Fixes to printfile and printtail methods
Throw an exception if no filename is specified (rather than just abort the script by returning JS_FALSE).
The return value is supposed to be a bool, not an int (JS_TRUE != JSVAL_TRUE).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to sbbs/master on Friday, November 06, 2020 20:02:11
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sunday, April 04, 2021 15:13:57
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Saturday, June 11, 2022 14:30:02
https://gitlab.synchro.net/main/sbbs/-/commit/22f3aa787318183e0a3f5a11
Modified Files:
src/sbbs3/js_console.cpp
Log Message:
Add console.progress() method
This exposes the Synchronet internal sbbs_t::progress() method used to
display a progress indication bar, e.g. "[ Scanning 10.0% ]" with the bar backfill effect (when supported by the terminal).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Tuesday, June 14, 2022 22:30:42
-
From
Deuc¨@VERT to
Git commit to main/sbbs/master on Thursday, December 29, 2022 10:06:57
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Thursday, December 29, 2022 12:48:49
-
From
Rob Swindell (on Windows)@VERT to
Git commit to main/sbbs/master on Monday, March 27, 2023 17:59:21
-
From
Rob Swindell (on Windows)@VERT to
Git commit to main/sbbs/master on Saturday, September 16, 2023 23:34:48
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 default
This allows the calling script to control what the default item is (when the user just hits enter), and not always the first item.
Fixes issue #637
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Friday, February 16, 2024 18:17:02
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).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Rob Swindell (on Windows 11)@VERT to
Git commit to main/sbbs/master on Saturday, March 23, 2024 17:11:55