docs: public void finish() {
          try {
              if (switcher.getCurrentMode() == STTYMode.RAW && lineCount > 0) {
                  out.write('\r');
                  out.write('\n');
                  out.flush();
              }
              lineCount = 0;
          } catch (IOException e) {
              throw new UncheckedIOException(e);
          }
      }