[syslinux] NEW: COM32 module to run another command, optionally clearing the screen
Erwan Velu
erwan at seanodes.com
Mon Feb 23 04:25:32 PST 2009
Gene Cumm wrote:
Hey Gene,
> From: Gene Cumm <gene.cumm at gmail.com>
>
> run.c: A simple COM32 module that will optionally clear the screen
> (using newlines) then run a command.
>
[...]
> if (strcmp(argv[1], "-c") == 0) {
> DEBUG_PRINTF("--Found '-c'\n");
> argst++;
> for (i = 0; i < NUM_NL; i++)
> printf("\n");
> }
Why not using the ANSI char to clear the screen ? Looks cleaner for me.
In my modules, I do :
fputs("\033e\033%@\033)0\033(B\1#0\033[?25l\033[2J", stdout);
More information about the Syslinux
mailing list