Index: uspace/app/bdsh/cmds/modules/clear/clear.c
===================================================================
--- uspace/app/bdsh/cmds/modules/clear/clear.c	(revision e0735f269ccb0ca3778a92d7da70fb323e380bff)
+++ uspace/app/bdsh/cmds/modules/clear/clear.c	(revision e0735f269ccb0ca3778a92d7da70fb323e380bff)
@@ -0,0 +1,53 @@
+
+#include "clear.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include "cmds.h"
+#include "config.h"
+#include "entry.h"
+#include "errors.h"
+#include "util.h"
+
+static const char *cmdname = "clear";
+
+/* Dispays help for clear in various levels */
+void help_cmd_clear(unsigned int level)
+{
+	printf("This is the %s help for '%s'.\n", level ? EXT_HELP : SHORT_HELP,
+	    cmdname);
+	return;
+}
+
+/* Main entry point for clear, accepts an array of arguments */
+int cmd_clear(char **argv)
+{
+	unsigned int argc;
+	unsigned int i;
+
+	printf("\033[H\033[J");
+	fflush(stdout);
+
+	/* Count the arguments */
+	for (argc = 0; argv[argc] != NULL; argc++)
+		;
+
+	// printf("%s %s\n", TEST_ANNOUNCE, cmdname);
+	// printf("%d arguments passed to %s", argc - 1, cmdname);
+
+	if (argc < 2) {
+		printf("\n");
+		printf("\033[H\033[J");
+		fflush(stdout);
+		return CMD_SUCCESS;
+	}
+
+	printf(":\n");
+	for (i = 1; i < argc; i++)
+		printf("[%d] -> %s\n", i, argv[i]);
+
+	printf("\033[H\033[J");
+	system("cls");
+	fflush(stdout);
+
+	return CMD_SUCCESS;
+}
Index: uspace/app/bdsh/cmds/modules/clear/clear.h
===================================================================
--- uspace/app/bdsh/cmds/modules/clear/clear.h	(revision e0735f269ccb0ca3778a92d7da70fb323e380bff)
+++ uspace/app/bdsh/cmds/modules/clear/clear.h	(revision e0735f269ccb0ca3778a92d7da70fb323e380bff)
@@ -0,0 +1,8 @@
+#ifndef CLEAR_H
+#define CLEAR_H
+
+/* Prototypes for the clear command, excluding entry points */
+
+
+#endif /* CLEAR_H */
+
Index: uspace/app/bdsh/cmds/modules/clear/clear_def.inc
===================================================================
--- uspace/app/bdsh/cmds/modules/clear/clear_def.inc	(revision e0735f269ccb0ca3778a92d7da70fb323e380bff)
+++ uspace/app/bdsh/cmds/modules/clear/clear_def.inc	(revision e0735f269ccb0ca3778a92d7da70fb323e380bff)
@@ -0,0 +1,7 @@
+{
+	"clear",
+	"Clear the terminal",
+	&cmd_clear,
+	&help_cmd_clear,
+},
+
Index: uspace/app/bdsh/cmds/modules/clear/entry.h
===================================================================
--- uspace/app/bdsh/cmds/modules/clear/entry.h	(revision e0735f269ccb0ca3778a92d7da70fb323e380bff)
+++ uspace/app/bdsh/cmds/modules/clear/entry.h	(revision e0735f269ccb0ca3778a92d7da70fb323e380bff)
@@ -0,0 +1,9 @@
+#ifndef CLEAR_ENTRY_H
+#define CLEAR_ENTRY_H
+
+/* Entry points for the clear command */
+extern int cmd_clear(char **);
+extern void help_cmd_clear(unsigned int);
+
+#endif /* CLEAR_ENTRY_H */
+
