Skip to content

Commit

Permalink
Fixed restart
Browse files Browse the repository at this point in the history
  • Loading branch information
ny64 committed Jan 16, 2021
1 parent 1558c33 commit 762b6b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ To see all available options type <code>typist --help</code> or just
| Binding | Function |
|---------|----------|
| <kbd>Ctrl</kbd> + <kbd>q</kbd>; <kbd>Ctrl</kbd> + <kbd>c</kbd> | Exit |
| <kbd>Ctrl</kbd> + <kbd>r</kbd> | Restart typing test |


### Tips
Expand Down
5 changes: 3 additions & 2 deletions src/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,14 @@ void process_keypress() {
CLR_SCREEN;
CRS_POS_TOP;
exit(0);
/* case CTRL_KEY('r'):
case CTRL_KEY('r'):
refresh_screen();
parse_text();
print_text();
tt.pos = 0;
tt.print_index = 0;
first_key_read = 0;
break;*/
break;
case 127:
if (tt.pos == 0 || tt.is_new_page[tt.pos]) {
break;
Expand Down
Binary file modified typist
Binary file not shown.

0 comments on commit 762b6b1

Please sign in to comment.