# New Ticket Created by  Pawel Pabian 
# Please include the string:  [perl #132349]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=132349 >


Rakudo version 2017.09 built on MoarVM version 2017.09.1
MacOS 10.10.5, tested both in iTerm2 and built-in Terminal app.

Following code does not wait for user input but exits immediately.

perl6 -e 'say $*IN.getc'
Nil

BTW: This affects modules such as Terminal::Print that are unable to react to 
user input on macOS.


My default TTY settings are:
$ stty
speed 38400 baud;
lflags: echoe echok echoke echoctl pendin
iflags: iutf8
oflags: -oxtabs
cflags: cs8 -paren

But even setting it to raw mode:
$ stty raw
$ stty
speed 38400 baud;
lflags: -icanon -isig -iexten -echo echoke echoctl
iflags: -icrnl -ixon -imaxbel iutf8 ignbrk -brkint
oflags: -opost -oxtabs
cflags: cs8 -parenb

does not wait for user input.

Reply via email to