aboutsummaryrefslogtreecommitdiff
path: root/t/03utf8.c
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-18 14:03:39 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-18 14:03:39 +0000
commit6d6afe788c3ec1f320e12449eee230fb366228c5 (patch)
treea7f17b111e20dbe67bcaf5067f2ecd9c00d9f1db /t/03utf8.c
parent82ad14175cbcc7c0c660720c7a31f8e6f1cefe4e (diff)
downloadtermo-6d6afe788c3ec1f320e12449eee230fb366228c5.tar.gz
termo-6d6afe788c3ec1f320e12449eee230fb366228c5.tar.xz
termo-6d6afe788c3ec1f320e12449eee230fb366228c5.zip
Allow passing fd = -1 to constructor to make an instance not associated with an fd; must use push_bytes to provide it input
Diffstat (limited to 't/03utf8.c')
-rw-r--r--t/03utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/03utf8.c b/t/03utf8.c
index 9290613..bb97328 100644
--- a/t/03utf8.c
+++ b/t/03utf8.c
@@ -11,7 +11,7 @@ int main(int argc, char *argv[])
/* Sanitise this just in case */
putenv("TERM=vt100");
- tk = termkey_new(0, TERMKEY_FLAG_NOTERMIOS|TERMKEY_FLAG_UTF8);
+ tk = termkey_new(-1, TERMKEY_FLAG_UTF8);
termkey_push_bytes(tk, "a", 1);