]>
Commit | Line | Data |
---|---|---|
4e92e60d AG |
1 | // SPDX-License-Identifier: GPL-2.0+ |
2 | /* | |
3 | * (C) Copyright 2018 | |
4 | * DENX Software Engineering, Anatolij Gustschin <[email protected]> | |
5 | * | |
6 | * cls - clear screen command | |
7 | */ | |
4e92e60d | 8 | #include <command.h> |
cde03fa2 | 9 | #include <console.h> |
4e92e60d | 10 | #include <dm.h> |
bfaa51dd | 11 | |
09140113 | 12 | static int do_video_clear(struct cmd_tbl *cmdtp, int flag, int argc, |
4e92e60d AG |
13 | char *const argv[]) |
14 | { | |
cde03fa2 SG |
15 | if (console_clear()) |
16 | return CMD_RET_FAILURE; | |
a76b60f8 | 17 | |
4e92e60d AG |
18 | return CMD_RET_SUCCESS; |
19 | } | |
20 | ||
21 | U_BOOT_CMD(cls, 1, 1, do_video_clear, "clear screen", ""); |