/**
  * Set whether the terminal emulator should be in UTF-8 mode by default.
  *
  * <p>In UTF-8 mode, the terminal will handle UTF-8 sequences, allowing the display of text in
  * most of the world's languages, but applications must encode C1 control characters and graphics
  * drawing characters as the corresponding UTF-8 sequences.
  *
  * @param utf8ByDefault Whether the terminal emulator should be in UTF-8 mode by default.
  */
 public void setDefaultUTF8Mode(boolean utf8ByDefault) {
   mDefaultUTF8Mode = utf8ByDefault;
   if (mEmulator == null) {
     return;
   }
   mEmulator.setDefaultUTF8Mode(utf8ByDefault);
 }
  /**
   * Set the terminal emulator's window size and start terminal emulation.
   *
   * @param columns The number of columns in the terminal window.
   * @param rows The number of rows in the terminal window.
   */
  public void initializeEmulator(int columns, int rows) {
    mTranscriptScreen = new TranscriptScreen(columns, TRANSCRIPT_ROWS, rows, mColorScheme);
    mEmulator = new TerminalEmulator(this, mTranscriptScreen, columns, rows, mColorScheme);
    mEmulator.setDefaultUTF8Mode(mDefaultUTF8Mode);
    mEmulator.setKeyListener(mKeyListener);

    mIsRunning = true;
    mReaderThread.start();
    mWriterThread.start();
  }