Fork of LCD-Window which works with Enhanced TextLCD from Wim
Fork of LcdWindow by
Revision 11:85f30e1f19fc, committed 2016-01-04
- Comitter:
- charly
- Date:
- Mon Jan 04 21:20:43 2016 +0000
- Parent:
- 10:d40c70908bf0
- Child:
- 12:393329d0e050
- Commit message:
- Terminal::addText: wrap long lines to the next line.
Changed in this revision
terminal.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/terminal.cpp Mon Jan 04 20:22:17 2016 +0000 +++ b/terminal.cpp Mon Jan 04 21:20:43 2016 +0000 @@ -75,6 +75,10 @@ for (int i=0;i<_rows;i++) { _window->writeText(0,i,_lineBuffer[i]); } + if (strlen(text) > _columns){ + // add the remaining text to the next Line + this->addText(text + _columns); + } } void Terminal::clear() {