pty: merge input and close callbacks
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 28 Jan 2012 13:03:52 +0000 (14:03 +0100)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Sat, 28 Jan 2012 13:03:52 +0000 (14:03 +0100)
commitecb7ddbc290de6678fbf4aa3fb6c429824d8adf5
tree19873b91cb9840579cede859faaea50f9d21d09e
parentda0623c26020987d7b9195f301217712972da27c
pty: merge input and close callbacks

There is no reason to keep two callbacks as the caller always registers
both. Hence, we can use a shared callback. Reading length 0 means closed
like reading from an fd.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/pty.c
src/pty.h
src/terminal.c