K3YOMI / Wall-of-Flippers

A simple and easy way to find Flipper Zero Devices and Bluetooth Low Energy Based Attacks
MIT License
780 stars 57 forks source link

automatic narrow mode, tiny changes and colors! #12

Closed nescapp closed 9 months ago

nescapp commented 9 months ago

narrow mode activates if the terminal is less than 100 columns wide and changes the ASCII art to be more compact for better display of the UI (intended for those running WoF on a raspberry pi connecting with ssh trough a mobile device).

The ASCII art does not have to be blue, I just think it looks better (and more intimidating) if it is in another color than white.

drawing image
K3YOMI commented 9 months ago

I'll look into this when I can ☺️

K3YOMI commented 9 months ago

tput is not a windows native command.

Perhaps this?

import shutil
size = shutil.get_terminal_size()
print(size)

output: os.terminal_size(columns=237, lines=64)

nescapp commented 9 months ago

fixed it! thank you!