• getkeys

    From Nelgin@VERT/EOTLBBS to digitalman on Sat May 30 20:52:40 2020
    I'm trying to use console.getkeys to have a user select a page in an address book they want to go to.ããI have a variable, pages, which contains a number so I'm usingããvar keypress = console.getkeys(pages);ããAccording to the jsobjs file:ãã"get one key from of a list of valid command keys, or a number between 1 and maxnum"ããSince I'm passing a number, I would expect only to be able to input a number between 1 and whatever pages is, however it lets me enter any character.ããWhat am I doing wrong?ããJust in case, I also tried forcing pages to be typeof number.ãã---ã þ Synchronet þ End Of The Line BBS - endofthelinebbs.comã
  • From Digital Man@VERT to Nelgin on Sat May 30 21:44:25 2020
    Re: getkeysã By: Nelgin to digitalman on Sat May 30 2020 08:52 pmãã > I'm trying to use console.getkeys to have a user select a page in an addressã > book they want to go to.ã >ã > I have a variable, pages, which contains a number so I'm usingã >ã > var keypress = console.getkeys(pages);ã >ã > According to the jsobjs file:ã >ã > "get one key from of a list of valid command keys, or a number between 1 andã > maxnum"ã >ã > Since I'm passing a number, I would expect only to be able to input a numberã > between 1 and whatever pages is, however it lets me enter any character.ã >ã > What am I doing wrong?ããYou're not passing any keys.ãã > Just in case, I also tried forcing pages to be typeof number.ããIf you only want a number, use console.getnum() instead.ãã digital manããThis Is Spinal Tap quote #39:ãAirport Security Officer: Do you have any artificial plates or limbs?ãNorco, CA WX: 61.2øF, 80.0% humidity, 6 mph ENE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã