code: public synchronized static void setReader(@Nullable LineReader newReader) {
          if (newReader != null && newReader.getTerminal() != terminal) {
              throw new IllegalArgumentException("Reader was not created with TerminalConsoleAppender.getTerminal()");
          }
  
          reader = newReader;
      }
docs: Sets the {@link LineReader} that is used to read input from the console.
  Setting the {@link LineReader} will allow the appender to automatically
  redraw the input line when a new log message is added.
  
  <p><b>Note:</b> The specified {@link LineReader} must be created with
  the terminal returned by {@link #getTerminal()}.</p>
  
  @param newReader The new line reader