9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 7e991934d8bd09b4949f69550fd16b7b59acf181
parent 501195ba63014a529638ad5661f2a5bb1b28cff7
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date:   Tue, 27 Nov 2018 16:44:09 +0000

[pl011] Enable echo

Change-Id: Iefd8b96421f4ab6c7c018bc749b7699ce914e811
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>

Diffstat:
Mdrivers/pl011.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/pl011.c b/drivers/pl011.c @@ -45,8 +45,11 @@ flush(void) static void ansisetmode(void) { - static const char buf[5] = { 0x1b, '[', '2', '0', 'h' }; - uartwrite(buf, sizeof(buf)); + static const char ansism[5] = "\x1b[20h"; + static const char echo[6] = "\x1b[12l"; + + uartwrite(ansism, sizeof(ansism)); + uartwrite(echo, sizeof(echo)); } void