-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't hit enter in text input #129
Comments
Hey @philharmonie, I don't have macOS or PhpStorm to test this, but I feel like this would have already come up before if it occurred in a typical configuration. I'm wondering whether there's a terminal setting that's changed how the Enter key is received in PHP. To test this, could you please create a file (e.g. <?php
$initialTtyMode = `stty -g`;
`stty -icanon -isig -echo`;
while ($keys = fread(STDIN, 1024)) {
echo json_encode($keys).PHP_EOL;
if ($keys === "\x03") {
`stty $initialTtyMode`;
exit(0);
}
} And then execute that file in the problematic terminal: php test.php It should echo out each key as you press it, so could you please press the Enter key and report the result? You can use Ctrl+C to exit when you're done. Could you also please confirm whether or not this happens in another terminal application (e.g. the default macOS terminal or iTerm). |
It prints |
That's really strange. Can you confirm whether the issue occurs in a fresh Laravel installation? |
In the meantime there is a new update for phpstorm and the issue vanished. Still weird, but for me: resolved |
Laravel Prompts Version
0.1.17
Laravel Version
10.48.4
PHP Version
8.2.16
Operating System & Version
macOS 14.2.1
Terminal Application
phpStorm 2023.3.35
Description
I can't hit enter to confirm a text input.
I already tried to
rm -rf vendor && composer install && composer clear-cache && composer dump-autoload
without successSteps To Reproduce
Run e.g.
artisan make:controller
and enter the controller name.When hitting enter, nothing happens.
The text was updated successfully, but these errors were encountered: