mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge pull request #167 from Sniffleupagus/patch-3
Add new configuration option "ui.cursor" to enable or disable blinking cursor
This commit is contained in:
@ -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
|
||||
|
@ -216,6 +216,7 @@ class View(object):
|
||||
delay = 1.0 / self._config['ui']['fps']
|
||||
while True:
|
||||
try:
|
||||
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()
|
||||
|
Reference in New Issue
Block a user