linux - How do I pass ESC to stdin? -


how pass esc stdin in shell, esc on keyboard?

i have discovered 0x1b or ^[ outputted result of esc how can input esc?

on keyboards, can entered control[.

in shell script, (which part of posix shell):

printf '\033' 

and in gnu echo, may do

echo -e '\e' 

piping either script makes script's standard input ("stdin"):

printf '\033' | myscript 

Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -