Commit Graph

11 Commits

Author SHA1 Message Date
Corey O'Connor
dbb8ff9612 use hack from SendFile for determining Fd for handle. Use when requesting window size 2014-04-09 17:08:40 -07:00
Corey O'Connor
87e09a1484 derive new input loop 2014-01-21 03:50:57 -08:00
Corey O'Connor
451b12eee9 add back in tab support 2014-01-16 00:16:05 -08:00
Corey O'Connor
0bbc3397e1 split input table generation based on terminal type 2013-12-24 22:06:58 -08:00
Corey O'Connor
b3013245fd start refactoring input layer into a nice interface structure 2013-12-21 23:22:49 -08:00
Paul van der Walt
54d35d6ade prefixed all c functions to avoid Cabal bug #944 2012-04-22 15:49:25 +02:00
Mikolaj
18fe87aa96 attempt to fix a segfault possibly due to not NUL terminated strings
The strings used in withCWStringLen are (despite the incorrect comment)
supposed to come equipped with length, but no NUL at the end
(in particular nothing is allocated for an empty string).
Fortunately, here the length suffices.

See http://hackage.haskell.org/trac/ghc/ticket/5396
and https://github.com/coreyoconnor/vty/issues/14#issuecomment-1813397
2011-08-16 21:57:29 +02:00
coreyoconnor
4e956571eb remove stdout_output_buffer. Not used anymore
Ignore-this: 14dfb4c96aaf726b6c0794846d9a04aa

darcs-hash:20101111191217-f0a0d-e9e1046c7af4804b0d18516157566b6a26ec5c3d.gz
2010-11-11 11:12:17 -08:00
coreyoconnor
9bad126948 be certain to use the same output device as before any stdout redirection
Ignore-this: 8d49a95192e5f40a7e26bd403138425

darcs-hash:20100806211634-f0a0d-b80d746b71da80a8e5b7e54e0731a989f837a642.gz
2010-08-06 14:16:34 -07:00
coreyoconnor
4f06259de3 Invoke write directly instead of via hPutBuf
Ignore-this: 172072f7a4876e5864c8e54f896bf0b0

darcs-hash:20100114091229-f0a0d-915e8160f8cf596abbae4df8c9d883febeedf509.gz
2010-01-14 01:12:29 -08:00
coreyoconnor
7b38759846 use alloca instead of mallocBytes for exception safety
Ignore-this: 1d31bef2e227fefafe8bb4b6f9511e1d

darcs-hash:20090904172928-f0a0d-987b6931294fd33f7825eddc0adf04c81716a4dd.gz
2009-09-04 10:29:28 -07:00