5657585960616263646566
if (!ANSI.isEnabled()) { io.out.println("ANSI is not enabled. The clear command is not functional"); } else { reader.clearScreen(); return SUCCESS; } return SUCCESS; }
5556575859606162636465
137138139140141142143144145146147
Terminal terminal = reader.getTerminal(); _height = terminal.getHeight() - 2; _width = terminal.getWidth() - 2; try { reader.setPrompt(""); reader.clearScreen(); } catch (IOException e) { if (Main.debug) { e.printStackTrace(); } }
209210211212213214215216217218219
} } } if (reader != null) { try { reader.clearScreen(); } catch (IOException e) { if (Main.debug) { e.printStackTrace(); } }
180181182183184185186187188189190
BlurException { ConsoleReader reader = getConsoleReader(); if (reader != null) { try { reader.setPrompt(""); reader.clearScreen(); } catch (IOException e) { if (debug) { e.printStackTrace(); } throw new CommandException(e.getMessage());
138139140141142143144145146147148
217218219220221222223224225226227
162163164165166167168169170171172
ex.printStackTrace(); } } try { reader.setPrompt(""); reader.clearScreen(); } catch (IOException ex) { if (Main.debug) { ex.printStackTrace(); } }
249250251252253254255256257258259
238239240241242243244245246247248
if (interactive && args != null && args.length == 1) { if ("exit".equals(args[0])) { return; } if ("clear".equals(args[0])) { consoleReader.clearScreen(); consoleReader.redrawLine(); continue; } }