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 revisionBoth sides next revision
custom:javascript [2018/12/05 01:37] – Added a whole section/table on text output methods, because there are so many digital mancustom:javascript [2018/12/05 01:56] – [output] digital man
Line 120: Line 120:
 There are many different text output methods supported by the Synchronet JavaScript Object Model and knowing which method (function) to use in what situation can be confusing. The following table should help: There are many different text output methods supported by the Synchronet JavaScript Object Model and knowing which method (function) to use in what situation can be confusing. The following table should help:
  
-^ Method          ^ BBS((Terminal Server)) ^ JSexec ^ Prints newline ^ Expands/Decodes    ^ Multiple Strings((as function arguments)) ^ Notes ^ +^ Method          ^ BBS((Terminal Server)) ^ JSexec ^ Prints newline ^ Expands/Decodes    ^ Multiple Values((as function arguments)) ^ Notes ^ 
-| ''write()''     | Yes                    | Yes    | No           | Telnet-IAC, Ctrl-A | Yes                |       +| ''write()''     | Yes                    | Yes    | No           | Telnet-IAC, Ctrl-A | Yes                | If user not online, same as ''log(LOG_INFO, ...)'' 
-| ''write_raw()'' | Yes                    | No     | No           | Telnet-IAC         | Yes                |       |+| ''write_raw()'' | Yes                    | No     | No           | Telnet-IAC         | Yes                | Value may contain NULs, no charset translation |
 | ''writeln()''   | Yes                    | Yes    | Yes          | Telnet-IAC, Ctrl-A | Yes                | aka ''print()'' | | ''writeln()''   | Yes                    | Yes    | Yes          | Telnet-IAC, Ctrl-A | Yes                | aka ''print()'' |
-| ''printf()''    | Yes                    | Yes    | No           | Telnet-IAC, Ctrl-A | No                 | ala C ''printf()'' +| ''printf()''    | Yes                    | Yes    | No           | Telnet-IAC, Ctrl-A | Yes((using C printf format syntax))  | ala C ''printf()'' 
-| ''alert()''     | Yes                    | Yes    | Yes          | Telnet-IAC, Ctrl-A | No                       |+| ''alert()''     | Yes                    | Yes    | Yes          | Telnet-IAC, Ctrl-A | No                 If user not online, same as ''log(LOG_WARNING, ...)'' |
 | ''log()''             | Yes              | Yes    | N/A          |                    | Yes((following the log-level argument)) | Displayed/logged on the server only | | ''log()''             | Yes              | Yes    | N/A          |                    | Yes((following the log-level argument)) | Displayed/logged on the server only |
 | ''console.print()''   | Yes              | No     | No           | Telnet-IAC, Ctrl-A | Yes | | | ''console.print()''   | Yes              | No     | No           | Telnet-IAC, Ctrl-A | Yes | |
Line 132: Line 132:
 | ''console.putmsg()''  | Yes              | No     | No           | Telnet-IAC, Ctrl-A, @-Codes | No        |       | | ''console.putmsg()''  | Yes              | No     | No           | Telnet-IAC, Ctrl-A, @-Codes | No        |       |
 | ''console.center()''  | Yes              | No     | Yes          | Telnet-IAC, Ctrl-A | No | Text centered on screen | | ''console.center()''  | Yes              | No     | Yes          | Telnet-IAC, Ctrl-A | No | Text centered on screen |
-| ''console.mnemonics()'' | Yes            | No     | No           | Telnet-IAC, Ctrl-A, @-code, ~ | No | Hotkey highlights |+| ''console.mnemonics()'' | Yes            | No     | No           | Telnet-IAC, Ctrl-A, @-Codes, ~ | No | Hotkey highlights |
 | ''console.putbyte()'' | Yes              | No     | No           | Telnet-IAC         | No | No charset translation | | ''console.putbyte()'' | Yes              | No     | No           | Telnet-IAC         | No | No charset translation |
 | ''client.socket.send()'' | Yes           | No     | No                              | No | Avoid using | | ''client.socket.send()'' | Yes           | No     | No                              | No | Avoid using |