Package scala.tools.jline.UnixTerminal

Examples of scala.tools.jline.UnixTerminal.UnixKey


        if (Key.valueOf(c) == DELETE && settings.getProperty("erase") == DELETE.code) {
            c = BACKSPACE.code;
        }

        UnixKey key = UnixKey.valueOf(c);

        // in Unix terminals, arrow keys are represented by a sequence of 3 characters. E.g., the up arrow key yields 27, 91, 68
        if (key == ARROW_START) {
            // also the escape key is 27 thats why we read until we have something different than 27
            // this is a bugfix, because otherwise pressing escape and than an arrow key was an undefined state
View Full Code Here

TOP

Related Classes of scala.tools.jline.UnixTerminal.UnixKey

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.