Skip to content
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

better input ( readline ) #3

Closed
taocp opened this issue May 15, 2015 · 1 comment
Closed

better input ( readline ) #3

taocp opened this issue May 15, 2015 · 1 comment

Comments

@taocp
Copy link
Collaborator

taocp commented May 15, 2015

https://github.com/fxsjy/ins/blob/master/sandbox/ins_shell.sh#L4

read -p "galaxy ins> " cmd arg1 arg2 不支持backspace等按键

如此这般,赶脚好一点: read -e -p "galaxy ins> " cmd arg1 arg2.
man 1 read

 -e     If  the  standard input is coming from a terminal, readline (see READLINE above) is used
         to obtain the line.
@fxsjy
Copy link
Collaborator

fxsjy commented May 15, 2015

请发pull request

@taocp taocp closed this as completed May 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants