develooper Front page | perl.perl6.users | Postings from September 2020

Re: How to unbuffer $*IN

Thread Previous | Thread Next
From:
Gianni Ceccarelli
Date:
September 26, 2020 19:35
Subject:
Re: How to unbuffer $*IN
Message ID:
20200926203536.05a2b3dd@thenautilus.net
On 2020-09-26 David Santiago <demanuel@gmail.com> wrote:
> I'm trying to capture key presses in the terminal and according to 
> raku's documentation i need to have $*IN unbuffered.

You have to tell the terminal to stop buffering (AFAIK Raku doesn't
buffer its inputs), which is not exactly trivial.

You may be better off using
https://modules.raku.org/dist/Term::ReadKey:cpan:JKRAMER (for example)

-- 
	Dakkar - <Mobilis in mobile>
	GPG public key fingerprint = A071 E618 DD2C 5901 9574
	                             6FE2 40EA 9883 7519 3F88
	                    key id = 0x75193F88

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About