I have compiled the application for i386 target. It shall run on a P4-M. See atachment for my Makefile. I have tried printf("\033[2J") I will try: void clearToEOL(void) { printf("\033[K") } void moveCursor(int row, int col) { printf("\033[%d;%dH",row, col) } To if they work. //Magnus. Grant Edwards wrote: >In gmane.os.ecos.general, you wrote: > > > >>I wan't to know if it's possible to clear the screen or update a >>specific line with eCos? >> >> > >Depends on what screen you're using. > > > >>I have an application that writes data on the screen with >>printf() and I want to clear this data and write new. Is there >>a clear screen function or something like it? >> >> > >Assuming you're using an ANSI terminal, writing such functions >is pretty simple: > >void clearScreen(void) > { > printf("\033[2J") > } > >void clearToEOL(void) > { > printf("\033[K") > } > >void moveCursor(int row, int col) > { > printf("\033[%d;%dH",row, col) > } > >and so on. > > > -- ----------------------------------- Contact information Phone: (+46) (0) 31 206700 Mobile: (+46) (0) 733-908060 Email: it3otma@ituniv.se