Skip to content

Commit

Permalink
vjtop 动态改变显示模式失败 #72
Browse files Browse the repository at this point in the history
  • Loading branch information
calvin1978 committed Aug 6, 2018
1 parent 8972178 commit 4943400
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public InteractiveTask(VJTop app) {
tty = System.err;
}

@Override
public void run() {
while (true) {
try {
Expand Down Expand Up @@ -100,6 +101,7 @@ private void changeDisplayMode() {
String mode = readLine();
DetailMode detailMode = DetailMode.parse(mode);
if (detailMode != null && detailMode != app.view.mode) {
app.view.mode = detailMode;
tty.println(" Display mode changed to " + app.view.mode + " for next flush");
} else {
tty.println(" Nothing be changed");
Expand Down

0 comments on commit 4943400

Please sign in to comment.