Menu ▾ ▴

#877 In Linux Terminal, 'sleep' doesn't *reliably* clear the keyboard-buffer.

closed
rtlib
2018-05-23
2018-04-13
No

When running on a Linux text console/terminal, "SLEEP" does not wait for a keypress or time amount if a character is already present in the keyboard buffer.

Discussion

  • fxm (freebasic.net)

    See discussion at FreeBASIC forum:
    https://www.freebasic.net/forum/viewtopic.php?f=5&t=26580

    In fact, SLEEP should never empty the keyboard buffer, but any characters already present in the keyboard buffer must not modify the SLEEP's behavior (by acting as if a key was really pressed at the beginning of the waiting time of the instruction).

     

    Last edit: fxm (freebasic.net) 2018-04-13
  • Jeff Marshall

    Jeff Marshall - 2018-05-21
    • assigned_to: Jeff Marshall
    • Component: compiler --> rtlib
     
  • Jeff Marshall

    Jeff Marshall - 2018-05-23
    • status: open --> closed
     

Log in to post a comment.