fputs(USAGE_OPTIONS, out);
fputs(_(" -b, --beep beep if command has a non-zero exit\n"
" -c, --color interpret ANSI color sequences\n"
- " -d, --differences highlight changes between updates\n"
+ " -d, --differences[=<permanent>]\n"
+ " highlight changes between updates\n"
" -e, --errexit exit if command has a non-zero exit\n"
+ " -g, --chgexit exit when output from command changes\n"
" -n, --interval <secs> seconds to wait between updates\n"
" -p, --precise attempt run command in precise intervals\n"
" -t, --no-title turn off header\n"
usleep(next_loop - cur_time);
} else
usleep(interval * 1000000);
- }
+ } while (!exit_early);
- endwin();
-
- return EXIT_SUCCESS;
+ return EXIT_FAILURE;
}