Flanterm LF as new line, reformat LICENSE.txt
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m40s

This commit is contained in:
2026-03-02 19:49:52 +01:00
parent a566917ee9
commit 27afd57427
3 changed files with 41 additions and 48 deletions

View File

@@ -630,15 +630,11 @@ static void control_sequence_parse (struct flanterm_context* ctx, uint8_t c) {
ctx->get_cursor_pos (ctx, &x, &y);
if (y == ctx->scroll_bottom_margin - 1) {
ctx->scroll (ctx);
ctx->set_cursor_pos (ctx, x, y);
ctx->set_cursor_pos (ctx, 0, y);
} else {
ctx->set_cursor_pos (ctx, x, y + 1);
ctx->set_cursor_pos (ctx, 0, y + 1);
}
break;
case '\r':
ctx->get_cursor_pos (ctx, &x, &y);
ctx->set_cursor_pos (ctx, 0, y);
break;
case 14:
ctx->current_charset = 1;
break;
@@ -2422,9 +2418,9 @@ unicode_error:
case '\n':
if (y == ctx->scroll_bottom_margin - 1) {
ctx->scroll (ctx);
ctx->set_cursor_pos (ctx, x, y);
ctx->set_cursor_pos (ctx, 0, y);
} else {
ctx->set_cursor_pos (ctx, x, y + 1);
ctx->set_cursor_pos (ctx, 0, y + 1);
}
return;
case '\b':
@@ -2432,9 +2428,6 @@ unicode_error:
ctx->set_cursor_pos (ctx, x - 1, y);
}
return;
case '\r':
ctx->set_cursor_pos (ctx, 0, y);
return;
case '\a':
// The bell is handled by the kernel
if (ctx->callback != NULL) {