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

python - No exponential form of the z-axis in matplotlib-3D-plots -

excel vba - VBA Proxy auto-configuration for http requests -

sql server 2008 - split ssrs expression between 2 words -