Flanterm LF as new line, reformat LICENSE.txt
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m40s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m40s
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user