@SuppressWarnings("WeakerAccess") protected void writeToTerminal(byte... bytes) throws IOException {
synchronized (terminalOutput) {
    terminalOutput.write(bytes);
  }
}

@ SuppressWarnings ( "WeakerAccess" ) protected void writeToTerminal ( byte ... bytes ) throws IOException { synchronized ( terminalOutput ) { terminalOutput . write ( bytes ) ; } }
this method will write a list of bytes directly to the output stream of the terminal .
