builtins/src/main/java/org/jline/builtins/Less.java
/**
     * This is for long running commands to be interrupted by ctrl-c
     *
     * @throws InterruptedException if the thread has been interruped
     */
This is for long running commands to be interrupted by ctrl-c
@throws InterruptedException if the thread has been interruped
This is for long running commands to be interrupted by ctrl - c @throws InterruptedException if the thread has been interruped
public static void checkInterrupted() throws InterruptedException {
        Thread.yield();
        if (Thread.currentThread().isInterrupted()) {
            throw new InterruptedException();
        }
    }
public static void checkInterrupted ( ) throws InterruptedException { Thread . yield ( ) ; if ( Thread . currentThread ( ) . isInterrupted ( ) ) { throw new InterruptedException ( ) ; } }
This is for long running commands to be interrupted by ctrl-c
 @throws InterruptedException if the thread has been interruped
This is for long running commands to be interrupted by ctrl - c @throws InterruptedException if the thread has been interruped