Suppport for control characters
Run applications under pseudo-terminal (PTY) sessions
Brought to you by:
mezantrop
adding support for control characters (Ctrl-C, Ctrl-Alt-Del, Esc, etc) would make empty a perfect lightweight replacement to expect/pexpect ( with benefits over expect due to the simple fifo system! ).
In expect control characters can be sent by simpy prefixing the asci code with "\"
for example to send Ctrl-C:
send \003
it would be great
If you want to use the opportunity to send "ctrl + d" or other
you need to edit the source code a bit empty. It is very easy.
To archive their empty edit empty.s, and then again to rebuild empty
And so looking at empty.s unit
and inserted between the "break;" and "case 'n':"
Accepted. Thank you.
Added https://sourceforge.net/projects/empty/files/empty/empty-0.6.23b