mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Print warning messages to stderr rather than to stdout.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4793 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
f50b700ed3
commit
d39d949b79
@ -520,19 +520,19 @@ static int term_setup(TERM_REC *term)
|
|||||||
|
|
||||||
term_env = getenv("TERM");
|
term_env = getenv("TERM");
|
||||||
if (term_env == NULL) {
|
if (term_env == NULL) {
|
||||||
fprintf(term->out, "TERM environment not set\n");
|
fprintf(stderr, "TERM environment not set\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_TERMINFO
|
#ifdef HAVE_TERMINFO
|
||||||
if (setupterm(term_env, 1, &err) != 0) {
|
if (setupterm(term_env, 1, &err) != 0) {
|
||||||
fprintf(term->out, "setupterm() failed for TERM=%s: %d\n", term_env, err);
|
fprintf(stderr, "setupterm() failed for TERM=%s: %d\n", term_env, err);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (tgetent(term->buffer1, term_env) < 1)
|
if (tgetent(term->buffer1, term_env) < 1)
|
||||||
{
|
{
|
||||||
fprintf(term->out, "Termcap not found for TERM=%s\n", term_env);
|
fprintf(stderr, "Termcap not found for TERM=%s\n", term_env);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -545,7 +545,7 @@ static int term_setup(TERM_REC *term)
|
|||||||
else if (term->TI_hpa && term->TI_vpa)
|
else if (term->TI_hpa && term->TI_vpa)
|
||||||
term->move = _move_pa;
|
term->move = _move_pa;
|
||||||
else {
|
else {
|
||||||
fprintf(term->out, "Terminal doesn't support cursor movement\n");
|
fprintf(stderr, "Terminal doesn't support cursor movement\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
term->move_relative = _move_relative;
|
term->move_relative = _move_relative;
|
||||||
@ -562,7 +562,7 @@ static int term_setup(TERM_REC *term)
|
|||||||
else if (term->scroll == NULL && (term->TI_il1 && term->TI_dl1))
|
else if (term->scroll == NULL && (term->TI_il1 && term->TI_dl1))
|
||||||
term->scroll = _scroll_line_1;
|
term->scroll = _scroll_line_1;
|
||||||
else if (term->scroll == NULL) {
|
else if (term->scroll == NULL) {
|
||||||
fprintf(term->out, "Terminal doesn't support scrolling\n");
|
fprintf(stderr, "Terminal doesn't support scrolling\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -579,7 +579,7 @@ static int term_setup(TERM_REC *term)
|
|||||||
/* we could do this by line inserts as well, but don't
|
/* we could do this by line inserts as well, but don't
|
||||||
bother - if some terminal has insert line it most probably
|
bother - if some terminal has insert line it most probably
|
||||||
has delete line as well, if not a regular clear screen */
|
has delete line as well, if not a regular clear screen */
|
||||||
fprintf(term->out, "Terminal doesn't support clearing screen\n");
|
fprintf(stderr, "Terminal doesn't support clearing screen\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -587,7 +587,7 @@ static int term_setup(TERM_REC *term)
|
|||||||
if (term->TI_el)
|
if (term->TI_el)
|
||||||
term->clrtoeol = _clrtoeol;
|
term->clrtoeol = _clrtoeol;
|
||||||
else {
|
else {
|
||||||
fprintf(term->out, "Terminal doesn't support clearing to end of line\n");
|
fprintf(stderr, "Terminal doesn't support clearing to end of line\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user