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
Post a Comment