Fix ttywrite()
authorRoberto E. Vargas Caballero <k0ga@shike2.com>
Fri, 6 Nov 2015 19:01:00 +0000 (20:01 +0100)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Fri, 6 Nov 2015 19:01:00 +0000 (20:01 +0100)
commit9f6d8845df3f81e2bc86f593a2f93e098422b2fa
treec6eaaddfdd96da5d61126abf8314d92b92ec0fa0
parentf0398db4d172e838ef4b4ae55db3fb6a6fee6717
Fix ttywrite()

ttywrite was assuming that if it could not write then it could
read, but this is not necessarily true, there are some situations
where you cannot read or write. The correct behaviour is to detect
if you can read or/and write.
st.c