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 -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -

c# - Block closing WPF window (from a different thread) if OpenFileDialog is open -