VT 100 and embedded Controllers

VT100 is an old standard way of doing intelligent adressing on a standard ascii terminal.

To distinguish between text to be shown on terminal there is a special format for the VT100 commands

A command start with the ascii symbol ESC(pronouned escape) and has hex value 0x1B

After the ESC character follow a number of bytes - which describe the command to be executed.

Commands are visible in the sense its alfanumeric letters and ,. etc

A few examples

upper left corner is home and has coordinate (1,1)

Below is ^ used to represent ESC

command description ESC sequence
cursorhome move cursor to upper left corner ^[[H
cursorpos move cursor to v,h pos ^[[<v>;<h>H
clear screen yes ^[[2J

C Arduino ideas

//commands without parms

uint8_t clrScr[] = "\x1b[[J";

void setup() {
  int i;
  Serial.begin(115200);

  delay(400);
  Serial.println(__FILE__);
  delay(500);

  i = 0;
  while (1) {
  #ifdef NEVER
    if (clr[i] != 0) {
      //Serial.print((int)(clrScr[i]),HEX);

      i++;
    }
    #ENDIF
    Serial.print(clrScr);

  }
}

void loop() {
  // put your main code here, to run repeatedly:
}

Docu

See cmds.html for list of the commands

Source code and docs

Src folder list: here

Jens