Skip to content

Commit

Permalink
Move back default pause/resume implementations to AbstractTerminal, #140
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 8, 2018
1 parent 7df08fb commit eed23d2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,23 @@ protected void checkInterrupted() throws InterruptedIOException {
throw new InterruptedIOException();
}
}

@Override
public boolean canPauseResume() {
return false;
}

@Override
public void pause() {
}

@Override
public void resume() {
}

@Override
public boolean paused() {
return false;
}

}
18 changes: 0 additions & 18 deletions terminal/src/main/java/org/jline/terminal/impl/DumbTerminal.java
Original file line number Diff line number Diff line change
Expand Up @@ -129,22 +129,4 @@ public void setSize(Size sz) {
public void close() throws IOException {
}

@Override
public boolean canPauseResume() {
return false;
}

@Override
public void pause() {
}

@Override
public void resume() {
}

@Override
public boolean paused() {
return false;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -245,24 +245,6 @@ public void close() throws IOException {
}
}

@Override
public boolean canPauseResume() {
return false;
}

@Override
public void pause() {
}

@Override
public void resume() {
}

@Override
public boolean paused() {
return false;
}

private class FilteringOutputStream extends OutputStream {
@Override
public void write(int b) throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,25 +99,6 @@ public void close() throws IOException {
reader.shutdown();
}

@Override
public boolean canPauseResume() {
// There's no pump thread, so return false as there's no need to pause / resume
return false;
}

@Override
public void pause() {
}

@Override
public void resume() {
}

@Override
public boolean paused() {
return false;
}

@Override
public void setAttributes(Attributes attr) {
super.setAttributes(attr);
Expand Down

0 comments on commit eed23d2

Please sign in to comment.