diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-12-06 18:28:55 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-12-06 18:28:55 +0000 |
commit | 2bc8108b3ef0f21694ff5f4a96a5461b69cf957a (patch) | |
tree | 5eb11a7f6e64c42db0fe8e5ec14aa96a7ceab760 /tmux.h | |
parent | 08d7be638e15cd656cff3baba39eabe36959e06c (diff) | |
download | rtmux-2bc8108b3ef0f21694ff5f4a96a5461b69cf957a.tar.gz rtmux-2bc8108b3ef0f21694ff5f4a96a5461b69cf957a.tar.bz2 rtmux-2bc8108b3ef0f21694ff5f4a96a5461b69cf957a.zip |
Save term data in a linked list and reuse it.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.h,v 1.111 2007-12-06 10:36:01 nicm Exp $ */ +/* $Id: tmux.h,v 1.112 2007-12-06 18:28:55 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -556,11 +556,19 @@ struct tty_key { RB_ENTRY(tty_key) entry; }; +struct tty_term { + char *name; + TERMINAL *term; + u_int references; + + TAILQ_ENTRY(tty_term) entry; +}; + struct tty { char *path; - char *term; - TERMINAL *termp; + char *termname; + struct tty_term *term; int fd; struct buffer *in; |