diff options
| author | Atish Patra <[email protected]> | 2018-12-17 13:46:30 -0800 |
|---|---|---|
| committer | Atish Patra <[email protected]> | 2018-12-20 15:38:43 -0800 |
| commit | 3250fe72997df1a019bd79cfba5aaba5537f0d87 (patch) | |
| tree | d94472b25aec18d2d26ff9d96234a1560fb17c04 | |
| parent | 5adf2fdc9e59fb84be7412500c36517c949b9291 (diff) | |
Support /r/n as newline character.
Signed-off-by: Atish Patra <[email protected]>
| -rw-r--r-- | lib/sbi_console.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sbi_console.c b/lib/sbi_console.c index 24b9d3c3..83dd4780 100644 --- a/lib/sbi_console.c +++ b/lib/sbi_console.c @@ -31,6 +31,8 @@ char sbi_getc(void) void sbi_putc(char ch) { + if (ch == '\n') + sbi_platform_console_putc(console_plat, '\r'); sbi_platform_console_putc(console_plat, ch); } |
