diff --git a/user/ansi_parser_callbacks.c b/user/ansi_parser_callbacks.c index 712ef04..05ac348 100644 --- a/user/ansi_parser_callbacks.c +++ b/user/ansi_parser_callbacks.c @@ -180,9 +180,9 @@ apars_handle_CSI(char leadchar, int *params, char keychar) case 'J': // ED - clear screen if (n1 == 0) { - screen_clear(CLEAR_TO_CURSOR); - } else if (n1 == 1) { screen_clear(CLEAR_FROM_CURSOR); + } else if (n1 == 1) { + screen_clear(CLEAR_TO_CURSOR); } else { screen_clear(CLEAR_ALL); screen_cursor_set(0, 0); @@ -191,9 +191,9 @@ apars_handle_CSI(char leadchar, int *params, char keychar) case 'K': // EL - clear line if (n1 == 0) { - screen_clear_line(CLEAR_TO_CURSOR); - } else if (n1 == 1) { screen_clear_line(CLEAR_FROM_CURSOR); + } else if (n1 == 1) { + screen_clear_line(CLEAR_TO_CURSOR); } else { screen_clear_line(CLEAR_ALL); } diff --git a/user/user_main.h b/user/user_main.h index d710664..7521d68 100644 --- a/user/user_main.h +++ b/user/user_main.h @@ -1,7 +1,7 @@ #ifndef USER_MAIN_H_H #define USER_MAIN_H_H -#define FIRMWARE_VERSION "0.6.4+" GIT_HASH +#define FIRMWARE_VERSION "0.6.5+" GIT_HASH #define TERMINAL_GITHUB_REPO "https://github.com/MightyPork/esp-vt100-firmware" #endif //USER_MAIN_H_H