From 49434008b5222c7876c3b2a750fe0ef313623e32 Mon Sep 17 00:00:00 2001 From: "calvin.xiao" Date: Mon, 6 Aug 2018 11:25:59 +0800 Subject: [PATCH] =?UTF-8?q?vjtop=20=E5=8A=A8=E6=80=81=E6=94=B9=E5=8F=98?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E6=A8=A1=E5=BC=8F=E5=A4=B1=E8=B4=A5=20#72?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vjtop/src/main/java/com/vip/vjtools/vjtop/InteractiveTask.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vjtop/src/main/java/com/vip/vjtools/vjtop/InteractiveTask.java b/vjtop/src/main/java/com/vip/vjtools/vjtop/InteractiveTask.java index 450a280f..136e338c 100644 --- a/vjtop/src/main/java/com/vip/vjtools/vjtop/InteractiveTask.java +++ b/vjtop/src/main/java/com/vip/vjtools/vjtop/InteractiveTask.java @@ -21,6 +21,7 @@ public InteractiveTask(VJTop app) { tty = System.err; } + @Override public void run() { while (true) { try { @@ -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");