Sends specified number of codes to the display.
Codes can be ANSI/VT codes or ASCII characters.
- Parameters
-
buffer | Pointer to codes buffer. |
size | Number 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/KeyboardScanCodes/KeyboardScanCodes.ino, Others/KeyboardVirtualKeys/KeyboardVirtualKeys.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, VGA/Songs/Songs.ino, and VGA/SoundChipSimulator/SoundChipSimulator.ino.
Definition at line 1958 of file terminal.cpp.