In article <87hfocxypx.fsf@romulus.bland.fido.de>, Tobias Ernst wrote: >Gnu C can recognise "\x1B" as a way of encoding the character with >charactercode 0x1B Since \033 (which you do know about) takes the same number of characters as \x1b, and has the advantage of actually being C rather than some extension, why not use that? Though IMO a more correct way to code that is: #include #include char tbuf[1024]; int main(int ac, char **av) { char *term = getenv("TERM"); if(!term) { fprintf(stderr, "%s: TERM type not known.\n", av[0]); return 2; } switch(tgetent(tbuf, term)) { case 0: fprintf(stderr, "%s: %s not found.\n", av[0], term); return 2; case -1: fprintf(stderr, "%s: Can't open TERM database.\n", av[0]); return 2; } cl = tgetstr(tbuf, "cl"); if(!cl) { fprintf(stderr, "%s: %s does not have clear screen.\n", av[0]); return 2; } printf("%sThe screen is cleared.\n", cs); return 0; } -- In hoc signo hack, Peter da Silva `-_-' Ar rug t� barr�g ar do mhact�re inniu? 'U` "Be vewy vewy quiet...I'm hunting Jedi." -- Darth Fudd