diff options
author | BlackEagle <ike.devolder@gmail.com> | 2019-07-04 21:25:29 +0200 |
---|---|---|
committer | BlackEagle <ike.devolder@gmail.com> | 2019-07-04 21:25:29 +0200 |
commit | e3af9800fd19f903a96e54dd4b15886a195cc1ee (patch) | |
tree | 6cad5bc6d8bd848ff2459c3e0a1ba7dd3ee43249 | |
parent | c6254d2038c5976a67106b8ade46e62da157d8a0 (diff) | |
download | vdebug-e3af9800fd19f903a96e54dd4b15886a195cc1ee.zip |
simplified status, take it into account for all printing in StatusWindow
Signed-off-by: BlackEagle <ike.devolder@gmail.com>
-rw-r--r-- | python3/vdebug/ui/vimui.py | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/python3/vdebug/ui/vimui.py b/python3/vdebug/ui/vimui.py index 7291d5e..7653966 100644 --- a/python3/vdebug/ui/vimui.py +++ b/python3/vdebug/ui/vimui.py @@ -639,12 +639,15 @@ class StatusWindow(Window): self.command('setlocal syntax=debugger_status') if self._buffer.is_empty(): keys = util.Keymapper() - output = "Status: starting\nListening on port\nNot connected\n\n" - output += "Press %s to start debugging, " % (keys.run_key()) - output += "%s to stop/close. " % (keys.close_key()) - output += "Type :help Vdebug for more information." - self.write(output) - self.set_height(6) + if opts.Options.get("simplified_status", int): + self.set_status("listening") + else: + output = "Status: starting\nListening on port\nNot connected\n\n" + output += "Press %s to start debugging, " % (keys.run_key()) + output += "%s to stop/close. " % (keys.close_key()) + output += "Type :help Vdebug for more information." + self.write(output) + self.set_height(6) def set_status(self, status): if opts.Options.get("simplified_status", int): @@ -670,16 +673,19 @@ class StatusWindow(Window): def mark_as_stopped(self): self.set_status("stopped") - self.insert("Not connected", 2, True) + if opts.Options.get("simplified_status", int) != 1: + self.insert("Not connected", 2, True) def set_conn_details(self, addr, port): - self.insert("Connected to %s:%s" % (addr, port), 2, True) + if opts.Options.get("simplified_status", int) != 1: + self.insert("Connected to %s:%s" % (addr, port), 2, True) def set_listener_details(self, addr, port, idekey): - details = "Listening on %s:%s" % (addr, port) - if idekey: - details += " (IDE key: %s)" % idekey - self.insert(details, 1, True) + if opts.Options.get("simplified_status", int) != 1: + details = "Listening on %s:%s" % (addr, port) + if idekey: + details += " (IDE key: %s)" % idekey + self.insert(details, 1, True) class TraceWindow(WatchWindow): |