Display text on LCD displays (even on multiple ones). Allow to create windows (frames) on display, and to combine them (split, add, duplicate, scroll). See http://mbed.org/users/hlipka/notebook/lcdwindow/ for more information.
Diff: terminal.cpp
- Revision:
- 1:65f72ed914fa
- Parent:
- 0:ae5037e3d6e0
- Child:
- 2:5ac5bab7daaf
--- a/terminal.cpp Mon Nov 15 22:37:30 2010 +0000 +++ b/terminal.cpp Tue Nov 16 20:49:18 2010 +0000 @@ -42,7 +42,7 @@ return text; } -void Terminal::writeText(unsigned int line, unsigned int pos, char text[]) { +void Terminal::writeText(const unsigned int line, const unsigned int pos, const char text[]) { _window->writeText(line,pos,text); int min=pos+strlen(text); if (min>_width) @@ -52,7 +52,7 @@ } } -void Terminal::addText(char text[]) { +void Terminal::addText(const char text[]) { delete [] _lines[0]; for (int i=0;i<_height-1;i++) { _lines[i]=_lines[i+1];