1 // SPDX-License-Identifier: GPL-2.0+
4 * Samuel Dionne-Riel <samuel@dionne-riel.com>
10 static int do_pause(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
12 char *message = "Press any key to continue...";
17 /* No newline, so it sticks to the bottom of the screen */
18 printf("%s", message);
20 /* Wait on "any" key... */
23 /* Since there was no newline, we need it now */
26 return CMD_RET_SUCCESS;
29 U_BOOT_CMD(pause, 2, 1, do_pause,
30 "delay until user input",
31 "[prompt] - Wait until users presses any key. [prompt] can be used to customize the message.\n"