| // SPDX-License-Identifier: GPL-2.0+ |
| * DENX Software Engineering, Anatolij Gustschin <agust@denx.de> |
| * cls - clear screen command |
| static int do_video_clear(struct cmd_tbl *cmdtp, int flag, int argc, |
| __maybe_unused struct udevice *dev; |
| /* Send clear screen and home */ |
| printf(CSI "2J" CSI "1;1H"); |
| #if defined(CONFIG_DM_VIDEO) |
| #if !defined(CONFIG_VIDEO_ANSI) |
| if (uclass_first_device_err(UCLASS_VIDEO, &dev)) |
| #elif defined(CONFIG_CFB_CONSOLE) |
| #elif defined(CONFIG_LCD) |
| U_BOOT_CMD(cls, 1, 1, do_video_clear, "clear screen", ""); |