diff --git a/sys/msdos/video.c b/sys/msdos/video.c index 916a3518d..57911edab 100644 --- a/sys/msdos/video.c +++ b/sys/msdos/video.c @@ -174,28 +174,28 @@ term_curs_set(int visibility) return; if (!visibility) { - if (!iflags.grmode) { + if (!iflags.grmode) { txt_hide_cursor(); #ifdef SCREEN_VGA - } else if (iflags.usevga) { - vga_hide_cursor(); + } else if (iflags.usevga) { + vga_hide_cursor(); #endif #ifdef SCREEN_VESA - } else if (iflags.usevesa) { - vesa_hide_cursor(); - } + } else if (iflags.usevesa) { + vesa_hide_cursor(); + } #endif } else if (visibility) { - if (!iflags.grmode) { + if (!iflags.grmode) { txt_show_cursor(); #ifdef SCREEN_VGA - } else if (iflags.usevga) { + } else if (iflags.usevga) { vga_show_cursor(); #endif #ifdef SCREEN_VESA - } else if (iflags.usevesa) { + } else if (iflags.usevesa) { vesa_show_cursor(); - } + } #endif } vis = visibility; diff --git a/sys/windows/consoletty.c b/sys/windows/consoletty.c index 10bc06c37..ed44f1271 100644 --- a/sys/windows/consoletty.c +++ b/sys/windows/consoletty.c @@ -98,22 +98,22 @@ cell_t undefined_cell = { CONSOLE_UNDEFINED_CHARACTER, CONSOLE_UNDEFINED_ATTRIBUTE }; #else /* VIRTUAL_TERMINAL_SEQUENCES */ cell_t clear_cell = { - { CONSOLE_CLEAR_CHARACTER, 0, 0, 0, 0, 0, 0 }, + { CONSOLE_CLEAR_CHARACTER, 0, 0, 0, 0, 0, 0 }, CONSOLE_CLEAR_CHARACTER, /* wcharacter */ - 0, /* attr */ - 0L, /* color24 */ - 0, /* color256idx */ - "\x1b[0m", /* bkcolorseq */ - 0 /* colorseq */ + 0, /* attr */ + 0L, /* color24 */ + 0, /* color256idx */ + "\x1b[0m", /* bkcolorseq */ + 0 /* colorseq */ }; cell_t undefined_cell = { - { CONSOLE_UNDEFINED_CHARACTER, 0, 0, 0, 0, 0, 0 }, + { CONSOLE_UNDEFINED_CHARACTER, 0, 0, 0, 0, 0, 0 }, CONSOLE_UNDEFINED_CHARACTER, /* wcharacter */ - 0, /* attr */ - 0L, /* color24 */ - 0, /* color256idx */ - (const char *) 0, /* bkcolorseq */ - (const char *) 0 /* colorseq */ + 0, /* attr */ + 0L, /* color24 */ + 0, /* color256idx */ + (const char *) 0, /* bkcolorseq */ + (const char *) 0 /* colorseq */ }; #if 0 static const uint8 empty_utf8str[MAX_UTF8_SEQUENCE] = { 0 }; @@ -1146,7 +1146,7 @@ CtrlHandler(DWORD ctrltype) case CTRL_BREAK_EVENT: term_clear_screen(); FALLTHROUGH; - /* FALLTHRU */ + /* FALLTHRU */ case CTRL_CLOSE_EVENT: case CTRL_LOGOFF_EVENT: case CTRL_SHUTDOWN_EVENT: @@ -1308,8 +1308,8 @@ really_move_cursor(void) oldtitle[39] = '\0'; } Snprintf(newtitle, sizeof newtitle, - "%-55s tty=(%02d,%02d) consoletty=(%02d,%02d)", - oldtitle, + "%-55s tty=(%02d,%02d) consoletty=(%02d,%02d)", + oldtitle, ttyDisplay->curx, ttyDisplay->cury, console.cursor.X, console.cursor.Y); (void) SetConsoleTitle(newtitle); diff --git a/sys/windows/windsys.c b/sys/windows/windsys.c index d1327869f..88f1a69bf 100644 --- a/sys/windows/windsys.c +++ b/sys/windows/windsys.c @@ -1338,8 +1338,8 @@ printf("E2: M=%s e=%d\n",msg,errnum); int win32_cr_gettrace(int maxframes USED_IF_BACKTRACE, - char *out USED_IF_BACKTRACE, - int outsize USED_IF_BACKTRACE) + char *out USED_IF_BACKTRACE, + int outsize USED_IF_BACKTRACE) { #ifdef USE_BACKTRACE userstate.error_count = 0;