Package jline

Examples of jline.UnsupportedTerminal


    {
        this.in = in;
        this.out = out;
        this.err = err;
        this.queue = new ArrayBlockingQueue<Integer>(1024);
        this.terminal = term == null ? new UnsupportedTerminal() : term;
        this.consoleInput = new ConsoleInputStream();
        this.session = processor.createSession(this.consoleInput, this.out, this.err);
        this.session.put("SCOPE", "shell:osgi:*");
        this.closeCallback = closeCallback;

View Full Code Here


    {
        this.in = in;
        this.out = out;
        this.err = err;
        this.queue = new ArrayBlockingQueue<Integer>(1024);
        this.terminal = term == null ? new UnsupportedTerminal() : term;
        this.consoleInput = new ConsoleInputStream();
        this.session = processor.createSession(this.consoleInput, this.out, this.err);
        this.session.put("SCOPE", "shell:osgi:*");
        this.closeCallback = closeCallback;

View Full Code Here

  private static void evaluateExpression(Session session, String expression) throws Exception {
    evaluate(session, new ByteArrayInputStream(expression.getBytes()));
  }

  private static void evaluate(Session session, InputStream in) throws Exception {
    UnsupportedTerminal term = new UnsupportedTerminal();
    ConsoleReader consoleReader = new ConsoleReader(in, System.out, term);
    JlineRepl repl = new JlineRepl(session, consoleReader);
    repl.setEcho(true);
    repl.setStopOnError(true);
View Full Code Here

  public JlineRepl(Session session) throws Exception {
   
    if(Strings.nullToEmpty(System.getProperty("os.name")).startsWith("Windows")) {
      // AnsiWindowsTerminal does not work properly in WIndows 7
      // so disabling across the board for now
      reader = new ConsoleReader(System.in, System.out, new UnsupportedTerminal());
    } else {
      reader = new ConsoleReader();
    }

    // disable events triggered by ! (this is valid R !!)
View Full Code Here

    // Examples assume that the package is already on the search path
    if(sourceFile.getName().endsWith(".Rd")) {
      loadLibrary(session, namespaceUnderTest);
    }
   
    UnsupportedTerminal term = new UnsupportedTerminal();
    InputStream in = new ByteArrayInputStream(sourceText.getBytes(Charsets.UTF_8));
    ConsoleReader consoleReader = new ConsoleReader(in, reporter.getStdOut(), term);
    JlineRepl repl = new JlineRepl(session, consoleReader);
    repl.setEcho(true);
    repl.setStopOnError(true);
View Full Code Here

    }

    public StreamConsoleReader(InputStream in, PrintWriter out) {
        try {
            if ("jline.UnsupportedTerminal".equals(System.getProperty("jline.terminal"))) {
                jlineConsoleReader = new jline.console.ConsoleReader(in, out, new UnsupportedTerminal());
            } else {
                jlineConsoleReader = new jline.console.ConsoleReader(in, out);
            }
        } catch (Throwable e) {
            logger.warn("Fail to create jline console, some features like password mask will be disabled, you might change the log level to debug to show the detailed information");
View Full Code Here

    this.environment = environment;
  }
 
  public void start() throws IOException {
    if(System.console() == null) {
      reader = new ConsoleReader(System.in, System.out, new UnsupportedTerminal());
    } else {
      reader = new ConsoleReader();
    }
    do {
      String line = reader.readLine(environment.getPrompt());
View Full Code Here

    {
        this.in = in;
        this.out = out;
        this.err = err;
        this.queue = new ArrayBlockingQueue<Integer>(1024);
        this.terminal = term == null ? new UnsupportedTerminal() : term;
        this.consoleInput = new ConsoleInputStream();
        this.session = processor.createSession(this.consoleInput, this.out, this.err);
        this.session.put("SCOPE", "shell:osgi:*");
        this.closeCallback = closeCallback;

View Full Code Here

        this.in = in;
        this.out = out;
        this.err = err;
        this.secured = secured;
        this.queue = new ArrayBlockingQueue<Integer>(1024);
        this.terminal = term == null ? new UnsupportedTerminal() : term;
        this.consoleInput = new ConsoleInputStream();
        if (secured) {
            this.session = new DelegateSession();
        } else {
            this.session = processor.createSession(consoleInput, out, err);
View Full Code Here

        this.threadIO = threadIO;
        this.in = in;
        this.out = out;
        this.err = err;
        this.queue = new ArrayBlockingQueue<Integer>(1024);
        this.terminal = term == null ? new UnsupportedTerminal() : term;
        this.consoleInput = new ConsoleInputStream();
        this.session = new DelegateSession();
        this.session.put("SCOPE", "shell:bundle:*");
        this.session.put("SUBSHELL", "");
        this.setCompletionMode();
View Full Code Here

TOP

Related Classes of jline.UnsupportedTerminal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.