How can I echo to /dev/tty?

inselberg picture inselberg · Apr 18, 2013 · Viewed 30.6k times · Source

Is there a way to send something like an "end of data" after executing

echo "test" > /dev/tty1

in order to gain the "input cursor" back to "receiving" terminal (in this case tty1)?

Screenshot: http://picload.org/image/acdwigg/tty.png

Answer

Steven Penny picture Steven Penny · Apr 18, 2013
$ echo "test" > /dev/tty
test
Cygwin supports the following character devices commonly found on POSIX systems:

/dev/tty    The current controlling tty of a session.

Special filenames