Displays user interactions with menus displayed on a console or a serial terminal.

Dependents:   EVAL-AD568x-AD569x EVAL-AD7124 EVAL-AD5592R EVAL-AD717x-AD411x ... more

Revision:
4:ced4fa6875ed
Parent:
2:6a97882f6144
Child:
5:052b9936f41f
--- a/adi_console_menu.c	Fri Feb 19 09:25:57 2021 +0000
+++ b/adi_console_menu.c	Sun May 09 22:59:54 2021 +0530
@@ -278,7 +278,7 @@
 	 *  Dedicated call to move home is because sometimes first move home doesn't work
 	 *  \r\n required to flush the uart buffer.
 	 */
-	printf("\x1B[2J\x1B[H\r\n");
+	printf(VT100_CLEAR_CONSOLE VT100_MOVE_TO_HOME EOL);
 
 	/*
 	 * if VT100 is not supported, this can be enabled instead, but menu display may not work well