FabGL
ESP32 VGA Controller and Graphics Library

◆ write() [1/2]

int fabgl::TerminalClass::write ( const uint8_t *  buffer,
int  size 
)

Send specified number of codes to the display.

Codes can be ANSI/VT codes or ASCII characters.

Parameters
bufferPointer to codes buffer.
sizeNumber of codes in the buffer.
Returns
The number of codes written.

Example:

   // Clear the screen and print "Hello World!"
   Terminal.write("\e[2J", 4);
   Terminal.write("Hellow World!\r\n", 15);

   // The same without size specified
   Terminal.write("\e[2J");
   Terminal.write("Hellow World!\r\n");