Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 1 month ago.
Problem with VT100 Terminal.
Hello all,
I'm am using Simon Fords VT100 Terminal library,
I have copy the example program and it works fine, however, when I add in a while(1) {} loop it hangs, I'm using Hyper Terminal on the pc.
Any suggestions why this might be?
Regards,
Dale
3 Answers
9 years, 1 month ago.
Hi Dale,
try following in file: Terminal.cpp
void Terminal::locate(int column, int row) { // Cursor Home <ESC>[{ROW};{COLUMN}H this->printf("\033[%d;%dH", row + 1, column + 1); }
9 years, 1 month ago.
Hi Dale,
You have to give hyperterminal chance to process the 'esc' characters sent to change location colour cls etc.,
so place a small delay after each 'esc' control i.e term.locate(x,y); wait(0.1); term.cls(); wait(0.1);
Regards Martin