git @ Cat's Eye Technologies Dipple / master c / cls.c
master

Tree @master (Download .tar.gz)

cls.c @masterraw · history · blame

/*
 * SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has dedicated it to the public domain.
 * For more information, please refer to <https://unlicense.org/>
 * SPDX-License-Identifier: Unlicense
 */

#include <stdio.h>

/* Properly clear the screen, even on AmigaOS 1.3 --
   Move to top left corner, THEN erase to end of display. */

int main(int argc, char **argv)
{
    printf("%c[1;1H%c[2J", 27, 27);
    return 0;
}