in reply to Re^2: Non blocking read from the console
in thread Non blocking read from the console

Try running it from the command prompt, not in the IDE's fake terminal.
  • Comment on Re^3: Non blocking read from the console

Replies are listed 'Best First'.
Re^4: Non blocking read from the console
by jmClifford (Beadle) on Oct 20, 2024 at 04:34 UTC

    Hi. Ta. It does work (in CMD mode). I had to add a "\n" to avoid the buffering of characters. Some console output follows (involving this change).

    C:\u\Perl_Eclipse_IDE\OBD2_control> C:\u\Perl_Eclipse_IDE\OBD2_control>perl Note_02_NonBlockingSTDIN.pl start finish ...........Get key K C:\u\Perl_Eclipse_IDE\OBD2_control> C:\u\Perl_Eclipse_IDE\OBD2_control> C:\u\Perl_Eclipse_IDE\OBD2_control>perl Note_02_NonBlockingSTDIN.pl start finish . . . . . Get key N

    But I find it dis-appointing to lose the convenience of running from the IDE. Are there other IDEs that would accommodate ?

    Regards JC....