-
Notifications
You must be signed in to change notification settings - Fork 94
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
Artisan arrow keys don't work #62
Comments
Hi @maPer77, Just to be clear, are you SSHing into a Linux machine before running Prompts don't currently work on Windows due to platform limitations, so we configure Prompts in Laravel to fall back to Symfony prompts. If you are SSH'd into a Linux machine, the current platform detection will detect Linux and not fall back. The platform limitations relate to how we can control the terminal's behaviour using the I will try to replicate the above scenario and see whether I can either fix it, or update the fallback behaviour. In the meantime, you can configure additional scenarios when Prompts fall back using the \Laravel\Prompts\Prompt::fallbackWhen(app()->isProduction()); Or you can always fall back: \Laravel\Prompts\Prompt::fallbackWhen(true); |
Hi @jessarcher, |
May be stty mode set at that time ssh permission required.
Then
|
I believe what is happening is that I am connected to shared hosting, I do not have permission for some things, it seems that one of those things is 'stty'. This resolved it very well: Thank you all. |
The ideal would be for 'Prompt' to identify that 'stty' cannot be loaded and switch to fallback automatically. I don't know if this would be possible, it would prevent other people from having this same problem. |
Can you please run in your ssh above given command using sudo? |
I have a branch that will automatically trigger the fallback when the |
Laravel Prompts Version
latest
Laravel Version
10.22.0
PHP Version
8.2.10
Operating System & Version
Windows 10
Terminal Application
PowerShell with SSH command
Description
The right and left keys do not work to select the option.
"^[[D" appears for the left key and "^[[C" for the right key, it is not possible to select the desired option.
Steps To Reproduce
The text was updated successfully, but these errors were encountered: