Lose unnecessary cursor restores, fix a couple of placement bugs and remove unused CR.

This commit is contained in:
Nicholas Marriott
2009-02-11 18:44:08 +00:00
parent 03d531ebc6
commit 6c76aaca92
3 changed files with 47 additions and 56 deletions

View File

@ -1,4 +1,4 @@
/* $Id: tty-term.c,v 1.10 2009-02-11 17:08:09 nicm Exp $ */
/* $Id: tty-term.c,v 1.11 2009-02-11 18:44:08 nicm Exp $ */
/*
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
@ -39,7 +39,6 @@ struct tty_term_code_entry tty_term_codes[NTTYCODE] = {
{ TTYC_CLEAR, TTYCODE_STRING, "clear" },
{ TTYC_CNORM, TTYCODE_STRING, "cnorm" },
{ TTYC_COLORS, TTYCODE_NUMBER, "colors" },
{ TTYC_CR, TTYCODE_STRING, "cr" },
{ TTYC_CSR, TTYCODE_STRING, "csr" },
{ TTYC_CUD, TTYCODE_STRING, "cud" },
{ TTYC_CUD1, TTYCODE_STRING, "cud1" },
@ -237,10 +236,6 @@ tty_term_find(char *name, int fd, char **cause)
xasprintf(cause, "terminal does not support clear");
goto error;
}
if (!tty_term_has(term, TTYC_CR)) {
xasprintf(cause, "terminal does not support cr");
goto error;
}
if (!tty_term_has(term, TTYC_RI)) {
xasprintf(cause, "terminal does not support ri");
goto error;