annotate toys/other/clear.c @ 944:b4faf2ae39e8

This inlines CRC64, and nothing more. The functions involved were called only once.
author Isaac Dunham <idunham@lavabit.com>
date Sat, 06 Jul 2013 11:26:15 -0500
parents 786841fdb1e0
children e85e5f3b87c2
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
694
786841fdb1e0 Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
Rob Landley <rob@landley.net>
parents: 656
diff changeset
1 /* clear.c - clear the screen
523
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
2 *
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
3 * Copyright 2012 Rob Landley <rob@landley.net>
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
4
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
5 USE_CLEAR(NEWTOY(clear, NULL, TOYFLAG_USR|TOYFLAG_BIN))
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
6
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
7 config CLEAR
694
786841fdb1e0 Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
Rob Landley <rob@landley.net>
parents: 656
diff changeset
8 bool "clear"
786841fdb1e0 Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
Rob Landley <rob@landley.net>
parents: 656
diff changeset
9 default y
786841fdb1e0 Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
Rob Landley <rob@landley.net>
parents: 656
diff changeset
10 help
786841fdb1e0 Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
Rob Landley <rob@landley.net>
parents: 656
diff changeset
11 Clear the screen.
523
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
12 */
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
13
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
14 #include "toys.h"
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
15
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
16 void clear_main(void)
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
17 {
694
786841fdb1e0 Reindent to two spaces per level. Remove vi: directives that haven't worked right in years (ubuntu broke its' vim implementation). Remove trailing spaces. Add/remove blank lines. Re-wordwrap in places. Update documentation with new coding style.
Rob Landley <rob@landley.net>
parents: 656
diff changeset
18 write(1, "\e[2J\e[H", 7);
523
c5c11dff9308 Add clear.
Rob Landley <rob@landley.net>
parents:
diff changeset
19 }