]> git.ipfire.org Git - thirdparty/u-boot.git/blob - cmd/cls.c
Merge commit '53633a893a06bd5a0c807287d9cc29337806eaf7' as 'dts/upstream'
[thirdparty/u-boot.git] / cmd / cls.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3 * (C) Copyright 2018
4 * DENX Software Engineering, Anatolij Gustschin <agust@denx.de>
5 *
6 * cls - clear screen command
7 */
8 #include <common.h>
9 #include <command.h>
10 #include <console.h>
11 #include <dm.h>
12
13 static int do_video_clear(struct cmd_tbl *cmdtp, int flag, int argc,
14 char *const argv[])
15 {
16 if (console_clear())
17 return CMD_RET_FAILURE;
18
19 return CMD_RET_SUCCESS;
20 }
21
22 U_BOOT_CMD(cls, 1, 1, do_video_clear, "clear screen", "");