fixed swapped 0 and 1 in clearing commands

pull/111/merge 0.6.5
Ondřej Hruška 7 years ago
parent e944a994a7
commit e47a5477f9
  1. 8
      user/ansi_parser_callbacks.c
  2. 2
      user/user_main.h

@ -180,9 +180,9 @@ apars_handle_CSI(char leadchar, int *params, char keychar)
case 'J': // ED - clear screen case 'J': // ED - clear screen
if (n1 == 0) { if (n1 == 0) {
screen_clear(CLEAR_TO_CURSOR);
} else if (n1 == 1) {
screen_clear(CLEAR_FROM_CURSOR); screen_clear(CLEAR_FROM_CURSOR);
} else if (n1 == 1) {
screen_clear(CLEAR_TO_CURSOR);
} else { } else {
screen_clear(CLEAR_ALL); screen_clear(CLEAR_ALL);
screen_cursor_set(0, 0); screen_cursor_set(0, 0);
@ -191,9 +191,9 @@ apars_handle_CSI(char leadchar, int *params, char keychar)
case 'K': // EL - clear line case 'K': // EL - clear line
if (n1 == 0) { if (n1 == 0) {
screen_clear_line(CLEAR_TO_CURSOR);
} else if (n1 == 1) {
screen_clear_line(CLEAR_FROM_CURSOR); screen_clear_line(CLEAR_FROM_CURSOR);
} else if (n1 == 1) {
screen_clear_line(CLEAR_TO_CURSOR);
} else { } else {
screen_clear_line(CLEAR_ALL); screen_clear_line(CLEAR_ALL);
} }

@ -1,7 +1,7 @@
#ifndef USER_MAIN_H_H #ifndef USER_MAIN_H_H
#define 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" #define TERMINAL_GITHUB_REPO "https://github.com/MightyPork/esp-vt100-firmware"
#endif //USER_MAIN_H_H #endif //USER_MAIN_H_H

Loading…
Cancel
Save