mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-17 09:50:31 +08:00
importlib.resources.files('astrbot')/dashboard/dist needs to exist
in the package dir for bundled dashboard detection to work in dev.
22 lines
525 B
Python
22 lines
525 B
Python
"""AstrBot TUI - Entry point for python -m astrbot.tui"""
|
|
|
|
from astrbot.tui.screen import run_curses
|
|
|
|
|
|
def main(stdscr):
|
|
"""Main TUI loop - placeholder for future TUI implementation."""
|
|
# For now, just display a message
|
|
import curses
|
|
|
|
curses.start_color()
|
|
curses.curs_set(1)
|
|
stdscr.clear()
|
|
stdscr.addstr(0, 0, "AstrBot TUI - Coming soon!", curses.A_BOLD)
|
|
stdscr.addstr(2, 0, "Press any key to exit...")
|
|
stdscr.refresh()
|
|
stdscr.getch()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
run_curses(main)
|