Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
custom:javascript [2019/07/26 18:05] – [Output] Created Input and Prompt sections with beginning tables (need work) digital mancustom:javascript [2023/08/04 19:24] (current) – [Input] A little more clarity on console.getbyte() digital man
Line 12: Line 12:
  
 You can learn about the core JavaScript language and object model from the following documents:  You can learn about the core JavaScript language and object model from the following documents: 
-  * [[http://developer.mozilla.org/en/JavaScript/Guide|Core JavaScript Guide]] ([[http://developer.mozilla.org/docs/Core_JavaScript_1.5_Guide|Historic: 1.5]]) +  * [[https://developer.mozilla.org/en-US/docs/Web/JavaScript|Core JavaScript Guide]] ([[http://developer.mozilla.org/docs/Core_JavaScript_1.5_Guide|Historic: 1.5]]) 
-  * [[http://developer.mozilla.org/en/JavaScript/Reference|Core JavaScript Reference]] ([[http://developer.mozilla.org/docs/Core_JavaScript_1.5_Reference|Historic: 1.5]])+  * [[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference|Core JavaScript Reference]] ([[http://developer.mozilla.org/docs/Core_JavaScript_1.5_Reference|Historic: 1.5]])
  
 JavaScript is an established, mature scripting language syntactically similar to C++ and Java.  JavaScript is an established, mature scripting language syntactically similar to C++ and Java. 
Line 19: Line 19:
 [[https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/JavaScript_Overview#JavaScript_and_Java|JavaScript is not Java]].  [[https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/JavaScript_Overview#JavaScript_and_Java|JavaScript is not Java]]. 
  
-The ECMA and ISO standards organizations have standardized the core JavaScript language in [[http://developer.netscape.com/docs/javascript/e262-pdf.pdf|ECMA-262]] (ECMAScript) and ISO-16262. +The ECMA and ISO standards organizations have standardized the core JavaScript language in [[https://262.ecma-international.org/5.1/ECMA-262.pdf|ECMA-262]] (ECMAScript) and ISO-16262. 
  
 ===== Baja and JavaScript ===== ===== Baja and JavaScript =====
Line 150: Line 150:
  
 ^ Method                    ^ BBS((Terminal Server)) ^ JSexec ^ Notes ^ ^ Method                    ^ BBS((Terminal Server)) ^ JSexec ^ Notes ^
-| ''read()''                | Yes                    | Yes    |       +| ''read()''                | Yes                    | Yes    | Read up to maxlen (default 128) characters of input  
-| ''readln()''              | Yes                    | Yes    |       | +| ''readln()''              | Yes                    | Yes    | Read a string (line of input) from user, up to maxlen chars (default: 128) | 
-| ''console.getstr()''      | Yes                    | No           +| ''console.inkey()''       | Yes                    | No     | Wait for a key-press or an elapsed timeout duration 
-| ''console.getkey()''      | Yes                    | No           | +| ''console.getstr()''      | Yes                    | No     Get a string of characters from user  
-| ''console.getbyte()''     | Yes                    | No           +| ''console.getkey()''      | Yes                    | No     Get a single key-press       | 
-| ''console.getnum()''      | Yes                    | No           +| ''console.getbyte()''     | Yes                    | No     Get an unprocessed input byte from remote terminal as a number 
-| ''console.getkeys()''     | Yes                    | No           +| ''console.getnum()''      | Yes                    | No     Get a number (between 1 and maxnum) from user     
-| ''console.gettemplate()'' | Yes                    | No           |+| ''console.getkeys()''     | Yes                    | No     Get a key from a list of valid keys, or a number  
 +| ''console.gettemplate()'' | Yes                    | No     Get a string conforming to a provided input template  |
  
 ==== Prompt ====  ==== Prompt ====