Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-09 Thread ToddAndMargo
On 09/09/2017 02:02 PM, Timo Paulssen wrote: The important part of the page is actually the one titled "Waiting for potential combiners". You'll want to either use binary encoding instead of utf8 (the default) or use an encoding that doesn't have combiners, like latin1 or ascii. Problem:

Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-09 Thread Timo Paulssen
The important part of the page is actually the one titled "Waiting for potential combiners". You'll want to either use binary encoding instead of utf8 (the default) or use an encoding that doesn't have combiners, like latin1 or ascii. > Problem: also from the link: > > method

Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-09 Thread ToddAndMargo
On 09/09/2017 07:00 AM, Timo Paulssen wrote: This should be enlightening: https://docs.perl6.org/routine/getc Hi Timo, From the link: Buffering terminals Using getc to get a single keypress from a terminal will only work properly if you've set the terminal to "unbuffered".

Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-09 Thread ToddAndMargo
On 09/09/2017 11:28 AM, Brandon Allbery wrote: On Sat, Sep 9, 2017 at 2:57 AM, ToddAndMargo > wrote: This guy maybe? https://github.com/krunen/term-termios/blob/master/README.md

Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-09 Thread Brandon Allbery
On Sat, Sep 9, 2017 at 2:57 AM, ToddAndMargo wrote: > This guy maybe? > > https://github.com/krunen/term-termios/blob/master/README.md > > I can't tell what he is saying. > > And his example wont read a carriage return That's very low level. And it's disabling icrnl, so

Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-09 Thread Timo Paulssen
This should be enlightening: https://docs.perl6.org/routine/getc

A pm6 to share: RunNoShell

2017-09-09 Thread ToddAndMargo
Hi All, I have been using the heck out of this pm6, so I though other wold like it too. Here is the most miserable code I have run at it so far (this guy has to be run from his own directory): 'bash -c "cd /opt/Cimcor/CimTrak/CimTrakServer; ./CimTrakServer.exe --version 2>&1 | grep -i

Re: What is P6 for P5 `use Term::ReadKey`?

2017-09-09 Thread ToddAndMargo
On 09/08/2017 11:41 PM, ToddAndMargo wrote: Hi All! I am trying to convert some Perl 5 code to Perl 6. What do I use in place of use Term::ReadKey qw ( ReadKey ReadMode ); I am trying to convert the following: use Term::ReadKey qw ( ReadKey ReadMode ); sub DumpKeyboard () { # Dump

What is P6 for P5 `use Term::ReadKey`?

2017-09-09 Thread ToddAndMargo
Hi All! I am trying to convert some Perl 5 code to Perl 6. What do I use in place of use Term::ReadKey qw ( ReadKey ReadMode ); I am trying to convert the following: use Term::ReadKey qw ( ReadKey ReadMode ); sub DumpKeyboard () { # Dump the contents of the keyboard buffer, if any