aboutsummaryrefslogtreecommitdiff
path: root/local.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2007-11-26 20:36:30 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2007-11-26 20:36:30 +0000
commit818df923debfcd9194314ee05e64cc62fbbb5458 (patch)
treea9c8295385ef6feace44377fae0ed0542fb4e416 /local.c
parentd61a63c04ef4fad938713493366dbec1cf2c34eb (diff)
downloadrtmux-818df923debfcd9194314ee05e64cc62fbbb5458.tar.gz
rtmux-818df923debfcd9194314ee05e64cc62fbbb5458.tar.bz2
rtmux-818df923debfcd9194314ee05e64cc62fbbb5458.zip
Add ^A && ^E to copy mode. Also use STDIN instead of STDOUT in a couple of places.
Diffstat (limited to 'local.c')
-rw-r--r--local.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/local.c b/local.c
index fa15baa2..84a8c670 100644
--- a/local.c
+++ b/local.c
@@ -1,4 +1,4 @@
-/* $Id: local.c,v 1.22 2007-11-25 10:59:44 nicm Exp $ */
+/* $Id: local.c,v 1.23 2007-11-26 20:36:30 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -243,7 +243,7 @@ local_init(struct buffer **in, struct buffer **out)
NULL
};
- if ((tty = ttyname(STDOUT_FILENO)) == NULL)
+ if ((tty = ttyname(STDIN_FILENO)) == NULL)
fatal("ttyname failed");
if ((local_fd = open(tty, O_RDWR)) == -1)
fatal("open failed");