• High ASCII in Synchronet SSJS

    From Khelair@VERT/TINFOIL to All on Saturday, July 26, 2014 16:43:04
    As a few of you might have seen in IRC in the past few days, I've recently (finally, even) started working on some SSJS to customize Synchronet the right way (and to add some demo/anim doors, also). I seem to be having a bit of a problem getting high ascii to display properly, though, through both console.print() and console.putmsg(). I've been trying to display the high ascii, when possible, via \xxx decimal format. I'm not really finding the documentation, that I'm sure exists somewhere, on how to do this properly. Or is there another high ascii mapping that Synchronet uses?
    Anyway, I'd really appreciate any pointers in the right direction, or anything else you might be able to offer. TIA
    -=-

    "It is no measure of good health to be well adjusted to a profoundly sick society." -- Jiddu Krishnamurti

    ---
    þ Synchronet þ Tinfoil Tetrahedron BBS telnet or ssh -p 2222 to tinfoil.synchro.net
  • From Deuce@VERT/SYNCNIX to Khelair on Monday, July 28, 2014 03:48:21
    Re: High ASCII in Synchronet SSJS
    By: Khelair to All on Sat Jul 26 2014 04:43 pm

    As a few of you might have seen in IRC in the past few days, I've
    recently (finally, even) started working on some SSJS to customize Synchronet the right way (and to add some demo/anim doors, also). I seem
    to be having a bit of a problem getting high ascii to display properly, though, through both console.print() and console.putmsg(). I've been
    trying to display the high ascii, when possible, via \xxx decimal format. I'm not really finding the documentation, that I'm sure exists somewhere,
    on how to do this properly. Or is there another high ascii mapping that Synchronet uses?
    Anyway, I'd really appreciate any pointers in the right direction, or anything else you might be able to offer. TIA

    To translate codepage 437 to HTML, there's html_encode(text, true, false, false, false)

    ---
    http://DuckDuckGo.com/ a better search engine that respects your privacy.
    þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From echicken@VERT/ECBBS to Khelair on Monday, July 28, 2014 13:00:46
    Re: High ASCII in Synchronet SSJS
    By: Khelair to All on Sat Jul 26 2014 16:43:04

    seem to be having a bit of a problem getting high ascii to display properly, though, through both console.print() and console.putmsg().
    I've been trying to display the high ascii, when possible, via \xxx decimal format. I'm not really finding the documentation, that I'm sure

    Here are a couple of different ways of printing a full block, which is 219 in decimal or DB in hexadecimal:

    console.putmsg(ascii(219));
    console.putmsg("\xDB");

    Note that "\xxx" for decimal will not work. "\x##" where ## is a hexadecimal code will (as in the second example above.)

    decimal format. I'm not really finding the documentation, that I'm sure exists somewhere, on how to do this properly. Or is there another high
    ascii mapping that Synchronet uses? Anyway, I'd really appreciate any

    http://asciitable.com/ and presumably various other sites will have a chart. That site lacks hex codes for the extended set, however it's easy enough to convert from decimal, or just use the first method I showed.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com