version 1.14, 2009/11/12 08:05:23 |
version 1.15, 2009/11/26 14:46:08 |
|
|
xasprintf(cause, "terminal does not support cud1 or cud"); |
xasprintf(cause, "terminal does not support cud1 or cud"); |
goto error; |
goto error; |
} |
} |
if (!tty_term_has(term, TTYC_IL1) && !tty_term_has(term, TTYC_IL)) { |
|
xasprintf(cause, "terminal does not support il1 or il"); |
|
goto error; |
|
} |
|
if (!tty_term_has(term, TTYC_DL1) && !tty_term_has(term, TTYC_DL)) { |
|
xasprintf(cause, "terminal does not support dl1 or dl"); |
|
goto error; |
|
} |
|
if (!tty_term_has(term, TTYC_ICH1) && |
|
!tty_term_has(term, TTYC_ICH) && (!tty_term_has(term, TTYC_SMIR) || |
|
!tty_term_has(term, TTYC_RMIR))) { |
|
xasprintf(cause, |
|
"terminal does not support ich1 or ich or smir and rmir"); |
|
goto error; |
|
} |
|
|
|
/* Figure out if we have 256 or 88 colours. */ |
/* Figure out if we have 256 or 88 colours. */ |
if (tty_term_number(term, TTYC_COLORS) == 256) |
if (tty_term_number(term, TTYC_COLORS) == 256) |