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

Hi. My console input (I suppose) is what ever comes with the Eclipse IDE software and uses Stawberry Perl.

Regards JC....

  • Comment on Re^2: Non blocking read from the console

Replies are listed 'Best First'.
Re^3: Non blocking read from the console
by SankoR (Prior) on Oct 19, 2024 at 01:31 UTC
    Try running it from the command prompt, not in the IDE's fake terminal.

      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....