Skip to content

Commit

Permalink
Make pause(boolean) public on Terminal, #231
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Mar 26, 2018
1 parent 5b2578c commit ca43f6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions terminal/src/main/java/org/jline/terminal/Terminal.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ interface SignalHandler {
*/
void pause();

/**
* Stop reading the input stream and optionally wait for the underlying threads to finish.
* @param wait
* @throws InterruptedException
*/
void pause(boolean wait) throws InterruptedException;

/**
* Resume reading the input stream.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ public boolean canPauseResume() {
public void pause() {
}

@Override
public void pause(boolean wait) throws InterruptedException {
}

Expand Down

0 comments on commit ca43f6a

Please sign in to comment.