Browse Source

add reset

K. Lange 2 years ago
parent
commit
614eb752d4
1 changed files with 14 additions and 0 deletions
  1. 14 0
      apps/reset.c

+ 14 - 0
apps/reset.c

@@ -0,0 +1,14 @@
+/* vim: tabstop=4 shiftwidth=4 noexpandtab
+ * This file is part of ToaruOS and is released under the terms
+ * of the NCSA / University of Illinois License - see LICENSE.md
+ * Copyright (C) 2018 K. Lange
+ *
+ * reset - make the terminal sane, and clear it
+ */
+#include <stdlib.h>
+
+int main(int argc, char * argv[]) {
+	system("stty sane");
+	system("clear");
+	return 0;
+}