diff --git a/src/apps/terminal/BasicTerminalBuffer.h b/src/apps/terminal/BasicTerminalBuffer.h index 60802bd3a1..2dca366872 100644 --- a/src/apps/terminal/BasicTerminalBuffer.h +++ b/src/apps/terminal/BasicTerminalBuffer.h @@ -286,6 +286,7 @@ BasicTerminalBuffer::InsertChar(const char* c) return InsertChar(UTF8Char(c), 1); } + void BasicTerminalBuffer::InsertChar(const char* c, int32 length) { diff --git a/src/apps/terminal/TermParse.cpp b/src/apps/terminal/TermParse.cpp index 21a060d04e..ece385aa1e 100644 --- a/src/apps/terminal/TermParse.cpp +++ b/src/apps/terminal/TermParse.cpp @@ -383,11 +383,11 @@ TermParse::EscParse() int row; int column; - /* default encoding system is UTF8 */ + // default encoding system is UTF8 int *groundtable = gUTF8GroundTable; int *parsestate = gUTF8GroundTable; - /* handle alternative character sets G0 - G4 */ + // handle alternative character sets G0 - G4 const char** graphSets[4] = { NULL, NULL, NULL, NULL }; int curGL = 0; int curGR = 0; @@ -422,12 +422,12 @@ TermParse::EscParse() if (curGraphSet != NULL) { int offset = c - (c < 128 ? 0x20 : 0xA0); if (offset >= 0 && offset < 96 - && (curGraphSet[offset] != 0)) { + && curGraphSet[offset] != 0) { fBuffer->InsertChar(curGraphSet[offset]); break; } } - fBuffer->InsertChar((char)(c)); + fBuffer->InsertChar((char)c); break; } case CASE_PRINT_GR: diff --git a/src/apps/terminal/VTPrsTbl.c b/src/apps/terminal/VTPrsTbl.c index 2651100a13..8e464107a4 100644 --- a/src/apps/terminal/VTPrsTbl.c +++ b/src/apps/terminal/VTPrsTbl.c @@ -9,6 +9,7 @@ * Siarzhuk Zharski, zharik@gmx.li */ + #include #include "VTparse.h"