Skip to content

Commit

Permalink
Add usart win cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
LDprg committed Feb 1, 2022
1 parent d1bc2f9 commit 8414e45
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions uno_def.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,11 @@ void usart_setint(int i, BASE base)
usart_setc((rev%base)+'0');
rev/=base;
}
}
void usart_win_cursor(bool on)
{
if(on)
usart_setstr("\e[?25h");
else
usart_setstr("\e[?25l");
}
3 changes: 3 additions & 0 deletions uno_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,7 @@ void usart_setc_ifready(char c);
void usart_setstr(char *str);
void usart_setint(int i, BASE base);


void usart_win_cursor(bool onoff);

#endif /* UNO_DEF_H_ */

0 comments on commit 8414e45

Please sign in to comment.