• MPL Question

    From Black Panther@21:1/186 to All on Monday, July 01, 2019 15:59:02
    Hi All,

    I have a silly question, so I'm expecting silly answers... ;)

    In MPL, is there a way to make sure the keyboard buffer is cleared? There are multiple ways to stuff the buffer, but I need to make sure it's cleared...

    Thanks


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)
  • From Gryphon@21:1/120 to Black Panther on Tuesday, July 02, 2019 15:57:36
    On 01 Jul 2019 &4, Black Panther said the following...

    Hi All,

    I have a silly question, so I'm expecting silly answers... ;)

    In MPL, is there a way to make sure the keyboard buffer is cleared?
    There are multiple ways to stuff the buffer, but I need to make sure
    it's cleared...

    Good point. I don't think that there is such a function. The best I can think of is to run some loop that reads the buffer until its empty.

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Cyberia BBS | cyberiabbs.zapto.org | San Jose, CA (21:1/120)
  • From Black Panther@21:1/186 to Gryphon on Tuesday, July 02, 2019 18:14:50
    On 02 Jul 2019, Gryphon said the following...

    In MPL, is there a way to make sure the keyboard buffer is cleared? There are multiple ways to stuff the buffer, but I need to make sure it's cleared...

    Good point. I don't think that there is such a function. The best I can think of is to run some loop that reads the buffer until its empty.

    That's what I was thinking, but wasn't sure... I'll come up with something. Thank you.


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)
  • From xqtr@21:1/111 to Black Panther on Wednesday, July 03, 2019 10:25:48
    In MPL, is there a way to make sure the keyboard buffer is clear There are multiple ways to stuff the buffer, but I need to make it's cleared...

    i think there is... or at least a mci code that clears the buffer. i ll check my docs and tell you.

    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A43 2019/03/03 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From xqtr@21:1/111 to Black Panther on Wednesday, July 03, 2019 17:07:13
    In MPL, is there a way to make sure the keyboard buffer is clear There are multiple ways to stuff the buffer, but I need to make it's cleared...
    Good point. I don't think that there is such a function. The best I c think of is to run some loop that reads the buffer until its empty.
    That's what I was thinking, but wasn't sure... I'll come up with something. Thank you.

    OK, i think i found it... its a pipe code named PB, from the display_codes.txt

    PB - Purge the current input buffer

    Haven't tested it though, but i think this is what you are searching :)

    :: XQTR :: Another Droid BBS :: andr01d.zapto.org:9999 :: xqtr@gmx.com

    --- Mystic BBS v1.12 A43 2019/03/03 (Raspberry Pi/32)
    * Origin: Another Droid BBS # andr01d.zapto.org:9999 (21:1/111)
  • From Black Panther@21:1/186 to xqtr on Wednesday, July 03, 2019 12:52:26
    On 03 Jul 2019, xqtr said the following...

    In MPL, is there a way to make sure the keyboard buffer is There are multiple ways to stuff the buffer, but I need to it's cleared...

    i think there is... or at least a mci code that clears the buffer. i ll check my docs and tell you.

    That's alright. What I did was just throw in:

    While KeyPressed Do temp:=ReadKey

    It seems to take care of it.


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)
  • From Black Panther@21:1/186 to xqtr on Wednesday, July 03, 2019 12:54:48
    On 03 Jul 2019, xqtr said the following...

    In MPL, is there a way to make sure the keyboard buffer is There are multiple ways to stuff the buffer, but I need to it's cleared...

    OK, i think i found it... its a pipe code named PB, from the display_codes.txt

    Well, I'll be darned... I never thought to look in there for something...

    PB - Purge the current input buffer

    Haven't tested it though, but i think this is what you are searching :)

    I'll give it a shot and let you know.

    Thank you.


    ---

    |03B|09lack |03P|09anther|03(|09RCS|03)|07

    --- Mystic BBS v1.12 A43 2019/03/02 (Linux/64)
    * Origin: Castle Rock BBS - bbs.castlerockbbs.com (21:1/186)