• avatar_chooser.js

    From Nightfox@1:103/705 to All on Mon Feb 5 12:28:50 2018
    Just wanted to report some strange behavior in the avatar chooser - I'm not sure if this is a bug or if it's by design.
    When editing my avatar online, it doesn't seem to allow typing numbers - Instead, the number keys insert the block characters. At first I thought the numbers might refer to the function keys, but when I press F1, F2, etc., it inserts 2 characters (F1 inserts OP, for instance).

    I know the avatars are meant for mainly "graphical" ANSI drawings, but if someone happens to want a number in their avatar, it might be good to allow the number keys to insert literal numbers and use other keys to draw the block characters. From using TheDraw and other ANSI editors, I've been used to using the function keys to draw block characters.

    Nightfox

    ---
    * Synchronet * Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Nightfox on Mon Feb 5 16:17:58 2018
    Re: avatar_chooser.js
    By: Nightfox to All on Mon Feb 05 2018 12:28:50

    Just wanted to report some strange behavior in the avatar chooser - I'm not sure if this is a bug or if it's by design.

    It's by design.

    When editing my avatar online, it doesn't seem to allow typing numbers -

    It does, but you need to select the numeric 'character set' first. Instead of using function keys, the "ANSI editor" uses number keys for input, and each key is mapped to a character in the currently selected set.

    The option to change character sets is in the [tab] menu.

    The mapping of numbers to characters should be visible at the bottom of the window.

    the numbers might refer to the function keys, but when I press F1, F2, etc., it inserts 2 characters (F1 inserts OP, for instance).

    I'm not sure if there's a reliable way to use the F-keys for input in a script like this. If there is, I'd be happy to explore it. I remember messing around with it years ago, and abandoning it in favour of just using the number keys.


    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to echicken on Mon Feb 5 13:24:37 2018
    Re: avatar_chooser.js
    By: echicken to Nightfox on Mon Feb 05 2018 04:17 pm

    the numbers might refer to the function keys, but when I press F1, F2, etc., it inserts 2 characters (F1 inserts OP, for instance).

    I'm not sure if there's a reliable way to use the F-keys for input in a script like this. If there is, I'd be happy to explore it. I remember messing around with it years ago, and abandoning it in favour of just using the number keys.

    I think only F1-F4 are fairly reliable (most terminals use the same sequences), but the other function keys, iirc, are a bit less standardized. :-(

    digital man

    Synchronet "Real Fact" #69:
    You can purchase the BBS Documentary DVD set at http://bbsdocumentary.com/order/
    Norco, CA WX: 78.2oF, 29.0% humidity, 3 mph NE wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.03-Win32
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to echicken on Mon Feb 5 14:25:16 2018
    Re: avatar_chooser.js
    By: echicken to Nightfox on Mon Feb 05 2018 04:17 pm

    Just wanted to report some strange behavior in the avatar chooser -
    I'm not sure if this is a bug or if it's by design.

    It's by design.

    When editing my avatar online, it doesn't seem to allow typing numbers
    -

    It does, but you need to select the numeric 'character set' first. Instead of using function keys, the "ANSI editor" uses number keys for input, and each key is mapped to a character in the currently selected set.

    The option to change character sets is in the [tab] menu.

    I see.

    The mapping of numbers to characters should be visible at the bottom of the window.

    Yes, it is visible.

    the numbers might refer to the function keys, but when I press F1, F2,
    etc., it inserts 2 characters (F1 inserts OP, for instance).

    I'm not sure if there's a reliable way to use the F-keys for input in a script like this. If there is, I'd be happy to explore it. I remember messing around with it years ago, and abandoning it in favour of just using the number keys.

    In SlyEdit, I've been able to map the F1 key to show the help screen. The function getKeyWithESCChars in SlyEdit_Misc.js handles F1 thorugh F5, though
    I suppose I'm not sure if it's a 100% reliable method. It seemed that a single call to console.inkey() (or getkey()) would return an "O" and then put another character on the input queue if a function key was pressed (the 2nd character would be different depending on which function key was pressed).

    In the online editor with avatar_chooser.js, if you press F1 for instance, it inserts "OP" into the avatar. That seems like an unexpected and undesirable behavior.

    Nightfox

    ---
    * Synchronet * Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From echicken@1:103/705 to Nightfox on Mon Feb 5 18:19:07 2018
    Re: avatar_chooser.js
    By: Nightfox to echicken on Mon Feb 05 2018 14:25:16

    In SlyEdit, I've been able to map the F1 key to show the help screen. The function getKeyWithESCChars in SlyEdit_Misc.js handles F1 thorugh F5, though I suppose I'm not sure if it's a 100% reliable method. It seemed that a

    The last time I tried dealing with F keys, it was a bit flaky. I also can't be sure that any given terminal client won't be trapping those keys for its own purposes. (It's own help screen, etc.)

    In the online editor with avatar_chooser.js, if you press F1 for instance, it inserts "OP" into the avatar. That seems like an unexpected and undesirable behavior.

    It's a mistake I make from time to time when using the editor, especially if I've recently been working in something like PabloDraw, but then I just overwrite those characters.

    I get that it's unexpected, but ultimately it's a case of sending the wrong input to the program and expecting the "correct" output. I'll see if I can make the use of the number keys and character sets clearer somehow, and maybe take a crack at handling (or ignoring) F-keys at some point.


    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    * Synchronet * electronic chicken bbs - bbs.electronicchicken.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nightfox@1:103/705 to echicken on Mon Feb 5 15:58:49 2018
    Re: avatar_chooser.js
    By: echicken to Nightfox on Mon Feb 05 2018 06:19 pm

    The last time I tried dealing with F keys, it was a bit flaky. I also can't be sure that any given terminal client won't be trapping those keys for its own purposes. (It's own help screen, etc.)

    That's a good point about terminal programs using the F keys for their own purposes.

    Nightfox

    ---
    * Synchronet * Digital Distortion: digitaldistortionbbs.com
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)