• console.getstr

    From High Spirit@VERT/DCBBS to All on Fri May 29 11:02:50 2015
    Working on something and can't seem to figure it out. Looking at the JavaScript ãObjet Model Reference for the getstr command, I see the usage:ããconsole.getstr([string] [,maxlen=128] [,mode=K_NONE])ããWhat is the [string] for?ããI was thinking it was a default value for the input but I cannot get that to ãwork.ããeg:ããconsole.print("Input Here: ");ãconsole.getstr("value", 25, K_NOSPIN);ããwould display:ããInput Here: valueããand the "value" would be highlighted and changed on first keystroke.ããAm I missing something or am I mis-interpreting what [string] is for?ããThanks.ããã-- High Spiritãã---ã þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:2323ã
  • From echicken@VERT/ECBBS to High Spirit on Fri May 29 12:39:37 2015
    Re: console.getstrã By: High Spirit to All on Fri May 29 2015 11:02:50ãã HS> console.getstr([string] [,maxlen=128] [,mode=K_NONE])ã HS> What is the [string] for?ã HS> I was thinking it was a default value for the input but I cannot get thatã HS> to work.ããI believe that you're correct.ãã HS> console.print("Input Here: ");ã HS> console.getstr("value", 25, K_NOSPIN);ããI'm not sure if K_NOSPIN has any effect on console.getstr (maybe justãconsole.getkey.)ãã HS> would display:ãã HS> Input Here: valueã HS> and the "value" would be highlighted and changed on first keystroke.ã HS> Am I missing something or am I mis-interpreting what [string] is for?ããYou might try this instead, which should give you the result you're lookingãfor:ããconsole.getstr("value", 25, K_EDIT|K_AUTODEL);ããYou might want to throw K_LINE onto the mode argument as well.ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.com - 416-273-7230ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
  • From High Spirit@VERT/DCBBS to echicken on Fri May 29 19:28:04 2015
    Re: console.getstrã By: echicken to High Spirit on Fri May 29 2015 12:39 pmãã > console.getstr("value", 25, K_EDIT|K_AUTODEL);ã >ã > You might want to throw K_LINE onto the mode argument as well.ããExactly what I wanted to do. Thanks echicken! :)ããã-- High Spiritãã---ã þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:2323ã
  • From Digital Man@VERT to High Spirit on Fri May 29 23:14:17 2015
    Re: console.getstrã By: High Spirit to All on Fri May 29 2015 11:02 amãã > Working on something and can't seem to figure it out. Looking at theã > JavaScript Objet Model Reference for the getstr command, I see the usage:ã >ã > console.getstr([string] [,maxlen=128] [,mode=K_NONE])ã >ã > What is the [string] for?ããIt's the default value for the string for K_EDIT mode.ãã > I was thinking it was a default value for the input but I cannot get that toã > work.ã >ã > eg:ã >ã > console.print("Input Here: ");ã > console.getstr("value", 25, K_NOSPIN);ã >ã > would display:ã >ã > Input Here: valueã >ã > and the "value" would be highlighted and changed on first keystroke.ã >ã > Am I missing something or am I mis-interpreting what [string] is for?ããAdd the K_EDIT mode flag. (e.g. "K_NOSPIN|K_EDIT").ãã digital manããSynchronet "Real Fact" #12:ãSynchronet was the first BBS software to ship with internal QWK networking.ãNorco, CA WX: 62.6øF, 81.0% humidity, 0 mph E wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From High Spirit@VERT/DCBBS to Digital Man on Mon Jun 1 09:07:39 2015
    Re: console.getstrã By: Digital Man to High Spirit on Fri May 29 2015 11:14 pmãã > It's the default value for the string for K_EDIT mode.ãã > Add the K_EDIT mode flag. (e.g. "K_NOSPIN|K_EDIT").ããYeah, I missed the K_EDIT part... you look at code and docs all day and you ãwill miss stuff.ããThanks :)ããã-- High Spiritãã---ã þ Synchronet þ Digital Creation BBS -- bbs.digitalcreationbbs.com:2323ã