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 -

Why does a .NET 4.0 program produce a system.unauthorizedAccess error on a Windows Server 2012 machine with .NET 4.5 installed? -