Anoni Moose wrote:

    * programs/wcmd/builtins.c, programs/wcmd/wcmdmain.c,
      programs/wcmd/wcmd.h:
    wcmd: Clear terminal screen using escape code.
          -Fix infinite file-read loop with TYPE command.
          -TITLE command use terminal escape code.
-Added FREEDISK command.

Please send one patch per email.  The patch should be standalone.

+ /* Clear the _terminal_ screen by giving the correct terminal escape code. */
+     printf("%cc", 0x1B);

You can't assume that you'll be using any sort of terminal here. If the backend is wineconsole or a non-xterm/vt100 terminal, then this won't work. You have to use the Win32 API.

Mike


Reply via email to