printBuffer method

void printBuffer()

Implementation

void printBuffer() {
  //if output stream 3 is active then we don't print,
  //Just preserve the buffer until the stream is de-selected.
  if (!engine.outputStream3) {
    sendIO({
      "command": ioCommands.print,
      "window": engine.currentWindow,
      "buffer": sbuff.toString()
    }).then((_) {
      sbuff.clear();
    });
  }
}