-
Notifications
You must be signed in to change notification settings - Fork 98
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
Unhandled carriage return as 'Enter' #176
Comments
Hey @Carnicero90, I started working on a PR to accept I don't think that's a reason not to accept |
It does indeed, never noticed since I generally have a dedicate pane for git stuff. |
I'm going to close this and #177 for now. Feel free to reopen if you discover an issue with Prompts. |
Well, I would say on an almost daily basis: not a biggie though, I'm leaving here |
Do you know how to replicate it? I've tried running psysh (via tinker) and then running prompts, but the Enter key still works fine. |
Laravel Prompts Version
0.3.2
Laravel Version
11.31.0
PHP Version
8.3.3
Operating System & Version
macOS 14.5
Terminal Application
alacritty, builtin vscode terminal, etc
Description
Whenever my terminal doesn't convert carriage return to new line (not sure why taht's happening, it seems to be caused by prompts though, for whatever reason), I am unable to submit any prompt, since \r isn't handled.
I think you could either add icrnl in Terminal@setTty or submit on $key == Key::CARRIAGE_RETURN as well, maybe?
I patched via
` public function setTty(string $mode): void
{
$this->initialTtyMode ??= $this->exec('stty -g');
in my repo, I'm not quite sure of all the implications of this approach though.
Steps To Reproduce
stty -icrnl
php artisan make:request
try to press enter
The text was updated successfully, but these errors were encountered: