Skip to content

Commit

Permalink
Broken Curses text
Browse files Browse the repository at this point in the history
  • Loading branch information
Degamisu committed Jan 20, 2024
1 parent 68988d3 commit 6cf0962
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ def manage_layout(self):
# Implement layout management logic here if needed
pass

def main(self):
def main(self, stdscr):
self.screen = stdscr
curses.curs_set(0) # Hide the cursor
self.get_screen_size()

choice = self.get_user_choice()

if choice == 'auto':
Expand Down Expand Up @@ -162,4 +166,4 @@ def main(self):
self.screen.getch()

if __name__ == "__main__":
curses.wrapper()
curses.wrapper(ConsoleWeatherApp().main)

0 comments on commit 6cf0962

Please sign in to comment.