
Dear =?UTF-8?q?Pali=20Roh=C3=A1r?=,
In message 1335634011-9104-10-git-send-email-pali.rohar@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@gmail.com Cc: Marcel Mol marcel@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