From 0c65f9c0b3af3dcb81d26ff68abc68cb8ed9c4fc Mon Sep 17 00:00:00 2001 From: Madeleine <32415621+SpyHoodle@users.noreply.github.com> Date: Sat, 19 Mar 2022 15:15:30 +0000 Subject: [PATCH] Delete welcome.py --- core/welcome.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 core/welcome.py diff --git a/core/welcome.py b/core/welcome.py deleted file mode 100644 index 3bc814f..0000000 --- a/core/welcome.py +++ /dev/null @@ -1,29 +0,0 @@ -import curses - - -def start_screen(screen): - # Get window height and width - height, width = screen.getmaxyx() - - # Startup text - title = "λ Lambda" - subtext = [ - "Next generation hackable text editor for nerds", - "", - "Type :h to open the README.md document", - "Type :o to open a file and edit", - "Type :q or to quit lambda.py" - ] - - # Centering calculations - start_x_title = int((width // 2) - (len(title) // 2) - len(title) % 2) - start_y = int((height // 2) - 2) - - # Rendering title - screen.addstr(start_y, start_x_title, title, curses.color_pair(7) | curses.A_BOLD) - - # Print the subtext - for text in subtext: - start_y += 1 - start_x = int((width // 2) - (len(text) // 2) - len(text) % 2) - screen.addstr(start_y, start_x, text)