Skip to content

Commit 8414e45

Browse files
committed
Add usart win cursor
1 parent d1bc2f9 commit 8414e45

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

uno_def.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,11 @@ void usart_setint(int i, BASE base)
106106
usart_setc((rev%base)+'0');
107107
rev/=base;
108108
}
109+
}
110+
void usart_win_cursor(bool on)
111+
{
112+
if(on)
113+
usart_setstr("\e[?25h");
114+
else
115+
usart_setstr("\e[?25l");
109116
}

uno_def.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,4 +170,7 @@ void usart_setc_ifready(char c);
170170
void usart_setstr(char *str);
171171
void usart_setint(int i, BASE base);
172172

173+
174+
void usart_win_cursor(bool onoff);
175+
173176
#endif /* UNO_DEF_H_ */

0 commit comments

Comments
 (0)