reader.setBellEnabled(true); if (Boolean.getBoolean("jline.nobell")) { reader.setBellEnabled(false);
/** * Sets up the JLine console reader. * * @return A JLine console reader. * * @throws IOException If an IO error is encountered while reading the input. */ private ConsoleReader initializeCommandLineReader() throws IOException { ConsoleReader reader = new ConsoleReader(); reader.setBellEnabled(false); return reader; }
consoleReader.setBellEnabled(false);
public static Object createJLineReader(final Shell shell) throws IOException { ConsoleReader reader = new ConsoleReader(); fixCtrlC(reader); // Add a Ctrl-c listener reader.addTriggeredAction((char)3, new ActionListener() { public void actionPerformed(ActionEvent e) { shell.bye(); System.exit(0); } }); reader.setBellEnabled(false); // TODO: write a Completor specific to this that can handle the individual command arguments List<Completor> completors = new LinkedList<Completor>(); // completors.add(new SimpleCompletor(Shell.COMMANDS)); // completors.add(new ICURICompletor(shell.node)); // completors.add(new FileNameCompletor()); // reader.addCompletor(new ArgumentCompletor(completors)); reader.addCompletor(new TShellCompletor(shell)); return reader; }
reader.setUsePagination(true); if (Boolean.getBoolean("jline.nobell")) { reader.setBellEnabled(false);
reader.setUsePagination(true); if (Boolean.getBoolean("jline.nobell")) { reader.setBellEnabled(false);
public static Object createJLineReader(final Shell shell) throws IOException { ConsoleReader reader = new ConsoleReader(); fixCtrlC(reader); // Add a Ctrl-c listener reader.addTriggeredAction((char)3, new ActionListener() { public void actionPerformed(ActionEvent e) { shell.bye(); System.exit(0); } }); reader.setBellEnabled(false); // TODO: write a Completor specific to this that can handle the individual command arguments List<Completor> completors = new LinkedList<Completor>(); // completors.add(new SimpleCompletor(Shell.COMMANDS)); // completors.add(new ICURICompletor(shell.node)); // completors.add(new FileNameCompletor()); // reader.addCompletor(new ArgumentCompletor(completors)); reader.addCompletor(new TShellCompletor(shell)); return reader; }
private void initJline() throws Exception { // String osName = System.getProperty("os.name"); // if (osName.startsWith("Windows")) { // return; // } consoleReader = new ConsoleReader(); consoleReader.setBellEnabled(false); // consoleReader.setDebug(new java.io.PrintWriter("jline-debug.txt")); History history = consoleReader.getHistory(); if (history == null) { history = new History(); consoleReader.setHistory(history); } File historyFile = new File(System.getProperty("user.home"), ".gfshhistory"); history.setHistoryFile(historyFile); // reader.setDebug(new PrintWriter(new FileWriter("writer.debug", true))); List completors = new LinkedList(); completors.add(new SimpleCompletor(commands)); consoleReader.addCompletor(new ArgumentCompletor(completors)); }
reader.setBellEnabled(false);
reader.setBellEnabled(false); File historyFile = handleHistoryFiles();
reader.setBellEnabled(true); if (Boolean.getBoolean("jline.nobell")) { reader.setBellEnabled(false);
public void primaryLoop() throws Exception { reader.setBellEnabled(false); reader.setUseHistory(true);
protected static void initReadline(Ruby runtime, ConsoleHolder holder) throws IOException { holder.readline = new ConsoleReader(); holder.readline.setUseHistory(false); holder.readline.setUsePagination(true); holder.readline.setBellEnabled(false); ((CandidateListCompletionHandler) holder.readline.getCompletionHandler()).setAlwaysIncludeNewline(false); if (holder.currentCompletor == null) { holder.currentCompletor = new RubyFileNameCompletor(); } holder.readline.addCompletor(holder.currentCompletor); holder.readline.setHistory(holder.history); }
reader.setBellEnabled(true); if (Boolean.getBoolean("jline.nobell")) { reader.setBellEnabled(false);
reader.setBellEnabled(false);