window tests
This commit is contained in:
@@ -78,15 +78,15 @@ void SerialStream::reset() {
|
||||
}
|
||||
|
||||
void SerialStream::setPos(int x, int y) {
|
||||
//char out[] = {0x1b, '[', 0, 0, ';', 0, 0, 'H', 0};
|
||||
*this << 0x1b;
|
||||
*this << '[';
|
||||
*this << dec << x;
|
||||
*this << ';' << y << 'H' << endl;
|
||||
flush();
|
||||
//itoa(x, &out[2], 10);
|
||||
//itoa(y, &out[5], 10);
|
||||
//print( out , strlen(out));
|
||||
char out[] = {0x1b, '[', 0, 0, ';', 0, 0, 'H', 0};
|
||||
//*this << 0x1b;
|
||||
//*this << '[';
|
||||
//*this << dec << x;
|
||||
//*this << ';' << y << 'H' << endl;
|
||||
//flush();
|
||||
itoa(x, &out[2], 10);
|
||||
itoa(y, &out[5], 10);
|
||||
print( out , strlen(out));
|
||||
}
|
||||
|
||||
void SerialStream::print(char* str, int length) {
|
||||
|
||||
Reference in New Issue
Block a user