FabGL
ESP32 Display Controller and Graphics Library

◆ write() [1/2]

size_t write ( const uint8_t *  buffer,
size_t  size 
)

Sends 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");
Examples:
Others/KeyboardStudio/KeyboardStudio.ino, SSD1306_OLED/128x32/SimpleTerminalOut/SimpleTerminalOut.ino, SSD1306_OLED/128x64/NetworkTerminal/NetworkTerminal.ino, SSD1306_OLED/128x64/RTClock/RTClock.ino, SSD1306_OLED/128x64/SimpleTerminalOut/SimpleTerminalOut.ino, ST7789_TFT/240x240/SimpleTerminalOut/SimpleTerminalOut.ino, VGA/Altair8800/Altair8800.ino, VGA/AnsiTerminal/AnsiTerminal.ino, VGA/LoopbackTerminal/LoopbackTerminal.ino, VGA/NetworkTerminal/NetworkTerminal.ino, VGA/SimpleTerminalOut/SimpleTerminalOut.ino, VGA/SimpleTextTerminalOut/SimpleTextTerminalOut.ino, and VGA/Songs/Songs.ino.

Definition at line 1835 of file terminal.cpp.