watch 'echo -e "A\n\nB"'

This commit is contained in:
albert 2002-11-28 19:47:16 +00:00
parent c64633ab31
commit bc60aa667d

View File

@ -196,6 +196,7 @@ main(int argc, char *argv[])
char *header;
FILE *p;
int x, y;
int oldeolseen = 1;
if (screen_size_changed)
{
@ -240,7 +241,7 @@ main(int argc, char *argv[])
c = getc(p);
while (c != EOF && !isprint(c) && c != '\n' && c != '\t');
if (c == '\n')
if (x == 0) {
if (!oldeolseen && x == 0) {
x=-1;
continue;
} else
@ -268,6 +269,7 @@ main(int argc, char *argv[])
if (attr)
standend();
}
oldeolseen = eolseen;
}
pclose(p);