Merge pull request #38 from echoprotocol/ECHO-732

added fix for multiline representing as one line
This commit is contained in:
Joachim Nilsson 2020-01-13 19:04:28 +01:00 committed by GitHub
commit 8d5d04f667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,8 +216,10 @@ static void tty_string(char *p)
while (*p) { while (*p) {
tty_show(*p++); tty_show(*p++);
if ((i++) % tty_cols == 0) if ((i++) % tty_cols == 0) {
tty_put('\n'); tty_put(' ');
tty_put('\b');
}
} }
} }