From ceace9c6bdbbdf8970b84517b78ee44869596287 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 14 Jul 2009 06:30:45 +0000 Subject: [PATCH] Since tmux doesn't actually need ncurses, use -lcurses/curses.h instead. Pointed out by millert a while ago. --- Makefile | 2 +- tty-term.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 4630160c..ef628faa 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ CDIAGFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations CDIAGFLAGS+= -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare CDIAGFLAGS+= -Wundef -Wbad-function-cast -Winline -Wcast-align -LDADD= -lutil -lncurses +LDADD= -lutil -lcurses DPADD= ${LIBUTIL} .include diff --git a/tty-term.c b/tty-term.c index e7aced73..0f50a269 100644 --- a/tty-term.c +++ b/tty-term.c @@ -18,7 +18,7 @@ #include -#include +#include #include #include @@ -183,7 +183,7 @@ tty_term_find(char *name, int fd, char **cause) term->flags = 0; SLIST_INSERT_HEAD(&tty_terms, term, entry); - /* Set up ncurses terminal. */ + /* Set up curses terminal. */ if (setupterm(name, fd, &error) != OK) { switch (error) { case 0: @@ -237,7 +237,7 @@ tty_term_find(char *name, int fd, char **cause) } tty_term_quirks(term); - /* Delete ncurses data. */ + /* Delete curses data. */ del_curterm(cur_term); /* These are always required. */ @@ -358,7 +358,7 @@ tty_term_string(struct tty_term *term, enum tty_code_code code) return (term->codes[code].value.string); } -/* No vtparm. Fucking ncurses. */ +/* No vtparm. Fucking curses. */ const char * tty_term_string1(struct tty_term *term, enum tty_code_code code, int a) {