• Insert/Overwrite with getstr()

    From Blakdeth@VERT/MASQBBS to All on Friday, May 30, 2008 13:46:36
    I am currently working on a Javascript Synchronet (3.15a) modification that uses the console.getstr() to allow the user to edit a line of text.

    I would like the user to be able to select either insert or overwrite mode while editing this string. While ^V works for this purpose, I am hoping to also allow the use of the INS key. Currently, when the user is editing the string, pressing INS generates "[@" instead of toggling the input mode.

    Is there a way to capture this key press?

    Thanks,
    -bd
    --
    Blakdeth
    Masquerade BBS // telnet://masqueradebbs.com
    http://www.masqueradebbs.com // blakdeth@masqueradebbs.com


    ---
    Synchronet Masquerade BBS - http://www.masqueradebbs.com
  • From Deuce@VERT/SYNCNIX to Blakdeth on Friday, May 30, 2008 16:28:00
    Re: Insert/Overwrite with getstr()
    By: Blakdeth to All on Fri May 30 2008 01:46 pm

    I would like the user to be able to select either insert or overwrite mode while editing this string. While ^V works for this purpose, I am hoping to also allow the use of the INS key. Currently, when the user is editing the string, pressing INS generates "[@" instead of toggling the input mode.

    Is there a way to capture this key press?

    Yeah... I added a fix... get tomorrows nightly build. :-)

    Out of curiosity, do you know what client was being used?

    ---
    Synchronet - Jump on the Web 0.2 bandwagon!

    ---
    Synchronet My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Blakdeth@VERT/MASQBBS to Deuce on Saturday, May 31, 2008 08:54:25

    I would like the user to be able to select either insert
    or overwrite mod while editing this string. While ^V works
    for this purpose, I am hoping t also allow the use of the
    INS key. Currently, when the user is editing th string,
    pressing INS generates "[@" instead of toggling the input
    mode. Is there a way to capture this key press?

    Yeah... I added a fix... get tomorrows nightly build. :-)
    Out of curiosity, do you know what client was being used?

    Yes. It was SyncTERM 0.9.1

    Thanks Deuce!
    --
    Blakdeth
    Masquerade BBS // telnet://masqueradebbs.com
    http://www.masqueradebbs.com // blakdeth@masqueradebbs.com


    ---
    Synchronet Masquerade BBS - http://www.masqueradebbs.com