XHCI big clean up, #define necessary bits for readability, change .clang-format options
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 3m5s
Build documentation / build-and-deploy (push) Successful in 3m50s

This commit is contained in:
2026-03-31 22:51:51 +02:00
parent 8f1e24653d
commit ee0e56928d
14 changed files with 401 additions and 119 deletions

View File

@@ -172,7 +172,9 @@ static void sgr (struct flanterm_context* ctx) {
continue;
}
else if (ctx->esc_values[i] == 2 || ctx->esc_values[i] == 3 || ctx->esc_values[i] == 4 ||
else if (ctx->esc_values[i] == 2 ||
ctx->esc_values[i] == 3 ||
ctx->esc_values[i] == 4 ||
ctx->esc_values[i] == 8) {
continue;
}
@@ -986,7 +988,8 @@ static void control_sequence_parse (struct flanterm_context* ctx, uint8_t c) {
if (ctx->esc_values_i > 1) {
ctx->scroll_bottom_margin = ctx->esc_values[1];
}
if (ctx->scroll_top_margin >= ctx->rows || ctx->scroll_bottom_margin > ctx->rows ||
if (ctx->scroll_top_margin >= ctx->rows ||
ctx->scroll_bottom_margin > ctx->rows ||
ctx->scroll_top_margin >= (ctx->scroll_bottom_margin - 1)) {
ctx->scroll_top_margin = 0;
ctx->scroll_bottom_margin = ctx->rows;