You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, at least for wp-cli --prompt parameter, another problem is created. If you use the left arrow to go to the beginning of what you typed, the cursor goes to the beginning of the line, before the question presented to the user. I think this happens because readline() expects the question as a parameter. So we will need to change that as well.
The text was updated successfully, but these errors were encountered:
From: wp-cli/wp-cli#996
Prompting doesn't support arrow keys because php-cli-tools uses fgets(STDIN) instead of readline:
https://github.com/wp-cli/php-cli-tools/blob/master/lib/cli/Streams.php#L130
The following seem to fix this issue:
But, at least for wp-cli
--prompt
parameter, another problem is created. If you use the left arrow to go to the beginning of what you typed, the cursor goes to the beginning of the line, before the question presented to the user. I think this happens because readline() expects the question as a parameter. So we will need to change that as well.The text was updated successfully, but these errors were encountered: