Closed chengchangwu closed 9 years ago
First of all, thank you for reporting this!
Interesting, I can't reproduce this error on my dev box or the travis build. Looks like its because of a different ioctl function signature on your platform. What platform did you get this error on?
The example seems to work under 64-bit version of Ubuntu 14.04 LTS, but not under 32-bit version.
I believe #12 should fix this, however I don't have a 32-bit machine to test it on. Closing the issue now as this should be fixed, but please let me know if you still get the error.
it is fixed. Thank you.
I've tried your example. It gives the following error:
/home/ccwu/.cargo/registry/src/github.com-1285ae84e5963aae/rustty-0.1.8/src/core/termctl.rs:60:53: 60:63 error: mismatched types: expected(self.fd, TIOCGWINSZ, &mut ws)
u32
, foundu64
(expected u32, found u64) [E0308] /home/ccwu/.cargo/registry/src/github.com-1285ae84e5963aae/rustty-0.1.8/src/core/termctl.rs:60 ioctl::read_into::