diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2012-05-22 14:32:28 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2012-05-22 14:32:28 +0000 |
commit | 84c708f3558d440be1a9e92ee8e6ead5c499fb0f (patch) | |
tree | d36591088fcd9c3f4a9c5c6994b51084da65fc3a /tty.c | |
parent | fe4f00834d9b28ac21b5ca641b2d190e93241a2e (diff) |
Store client in tty struct directly instead of using a callback function
pointer.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -64,7 +64,7 @@ void tty_cell(struct tty *, ((ctx)->xoff == 0 && screen_size_x((ctx)->wp->screen) >= (tty)->sx) void -tty_init(struct tty *tty, int fd, char *term) +tty_init(struct tty *tty, struct client *c, int fd, char *term) { char *path; @@ -76,6 +76,7 @@ tty_init(struct tty *tty, int fd, char *term) else tty->termname = xstrdup(term); tty->fd = fd; + tty->client = c; if ((path = ttyname(fd)) == NULL) fatalx("ttyname failed"); |