Skip to content

Commit

Permalink
fixed swapped 0 and 1 in clearing commands
Browse files Browse the repository at this point in the history
  • Loading branch information
MightyPork committed Aug 12, 2017
1 parent e944a99 commit e47a547
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions user/ansi_parser_callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion user/user_main.h
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e47a547

Please sign in to comment.