Added hide / show cursor mehodes
Fork of Terminal by
Diff: Terminal.cpp
- Revision:
- 3:8fd40799c142
- Parent:
- 2:85184c13476c
--- a/Terminal.cpp Tue Nov 23 16:03:35 2010 +0000 +++ b/Terminal.cpp Thu Oct 15 17:01:25 2015 +0000 @@ -55,3 +55,13 @@ int c = 40 + rgb888tobgr111(colour); this->printf("\033[%dm", c); } + +void Terminal::hideCursor() { + //Hide cursor from terminal + this->printf("\033[?25l"); +} + +void Terminal::showCursor() { + //Hide cursor from terminal + this->printf("\33[[?25h"); +} \ No newline at end of file