[U-Boot] [PATCH v2 09/11] New command clear: Clear the ANSI terminal
Wolfgang Denk
wd at denx.de
Thu Aug 9 23:02:16 CEST 2012
Dear =?UTF-8?q?Pali=20Roh=C3=A1r?=,
In message <1335634011-9104-10-git-send-email-pali.rohar at gmail.com> you wrote:
> * Command can be enabled by CONFIG_CMD_CLEAR
> * Added some ANSI escape codes definitions in common.h
>
> Signed-off-by: Pali Rohár <pali.rohar at gmail.com>
> Cc: Marcel Mol <marcel at mesa.nl>
> ---
> Changes since original version:
> - Renamed command clr to clear
> - Use puts instead printf
> - Move cursor to pos1,1
> - Merged parts of patch "Add some ANSI escape codes definitions in common.h"
>
> common/Makefile | 1 +
> common/cmd_clear.c | 42 ++++++++++++++++++++++++++++++++++++++++++
> include/common.h | 7 +++++++
> include/config_cmd_all.h | 1 +
> 4 files changed, 51 insertions(+)
> create mode 100644 common/cmd_clear.c
Adding this to the config_cmd_all settings changes a _real_lot_ of
board, most of which have zero interest in this function as they don't
have any graphics display at all.
Also, the ANSI control sequences should go into a separate header
file, not into common.h .
Thanks.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The use of COBOL cripples the mind; its teaching should, therefore,
be regarded as a criminal offense. - E. W. Dijkstra
More information about the U-Boot
mailing list