Files
contact/main.py
pdxlocations 85eae0fae1 Splash screen (#18)
* init

* M-PWRD Splash Screen
2025-01-10 13:06:59 -08:00

29 lines
740 B
Python

#!/usr/bin/env python3
'''
Curses Client for Meshtastic by http://github.com/pdxlocations
Powered by Meshtastic.org
V 0.2.0
'''
import curses
from pubsub import pub
from utilities.arg_parser import setup_parser
from utilities.interfaces import initialize_interface
from message_handlers.rx_handler import on_receive
from ui.curses_ui import main_ui, draw_splash
from utilities.utils import get_channels
import globals
def main(stdscr):
draw_splash(stdscr)
parser = setup_parser()
args = parser.parse_args()
globals.interface = initialize_interface(args)
globals.channel_list = get_channels()
pub.subscribe(on_receive, 'meshtastic.receive')
main_ui(stdscr)
if __name__ == "__main__":
curses.wrapper(main)