diff --git a/pwnagotchi/defaults.toml b/pwnagotchi/defaults.toml index 52a82938..b9f8b4fc 100644 --- a/pwnagotchi/defaults.toml +++ b/pwnagotchi/defaults.toml @@ -151,7 +151,7 @@ personality.throttle_a = 0.4 personality.throttle_d = 0.9 ui.invert = false # false = black background, true = white background - +ui.cursor = true ui.fps = 0.0 ui.font.name = "DejaVuSansMono" # for japanese: fonts-japanese-gothic ui.font.size_offset = 0 # will be added to the font size diff --git a/pwnagotchi/ui/view.py b/pwnagotchi/ui/view.py index 7471a190..abb5a744 100644 --- a/pwnagotchi/ui/view.py +++ b/pwnagotchi/ui/view.py @@ -216,8 +216,9 @@ class View(object): delay = 1.0 / self._config['ui']['fps'] while True: try: - name = self._state.get('name') - self.set('name', name.rstrip('█').strip() if '█' in name else (name + ' █')) + if self._config['ui'].get('cursor', True) == True: + name = self._state.get('name') + self.set('name', name.rstrip('█').strip() if '█' in name else (name + ' █')) self.update() except Exception as e: logging.warning("non fatal error while updating view: %s" % e)