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

2017-09-16 Thread Timo Paulssen
On 16/09/17 05:19, ToddAndMargo wrote: > On 09/13/2017 01:36 PM, Trey Harris wrote: >> L1 is an “ordinary method” (denoted, obviously enough, with the >> declarator |method|), which as described in the Typesystem >> doc, “defines >> objects of

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

2017-09-15 Thread ToddAndMargo
On 09/13/2017 01:36 PM, Trey Harris wrote: On Sat, Sep 9, 2017 at 3:55 PM ToddAndMargo toddandma...@zoho.com wrote: On 09/09/2017 07:00 AM, Timo Paulssen wrote: > This should be

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

2017-09-13 Thread Norman Gaywood
Thanks for that Trey! Previously I would just glance at those definitions and move straight to the examples. Now I can read them! Something like this explanation should be on a docs.perl6.org page. Maybe it is and I've just not found it. On 14 September 2017 at 06:36, Trey Harris

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

2017-09-13 Thread ToddAndMargo
On 09/13/2017 01:36 PM, Trey Harris wrote: On Sat, Sep 9, 2017 at 3:55 PM ToddAndMargo toddandma...@zoho.com wrote: On 09/09/2017 07:00 AM, Timo Paulssen wrote: > This should be enlightening: https://docs.perl6.org/routine/getc >

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

2017-09-13 Thread Trey Harris
On Sat, Sep 9, 2017 at 3:55 PM ToddAndMargo toddandma...@zoho.com wrote: On 09/09/2017 07:00 AM, Timo Paulssen wrote: > > This should be enlightening: https://docs.perl6.org/routine/getc > > > > Problem: also from the link: > > method getc(IO::Handle:D:

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

2017-09-13 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

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

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