From 4d5af6650b009ea95920f71c20759cc245d9fee8 Mon Sep 17 00:00:00 2001 From: JustinOros Date: Mon, 21 Jul 2025 10:11:38 -0700 Subject: [PATCH] Added feature: ESC to Exit. --- matrix-screensaver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-screensaver.py b/matrix-screensaver.py index bf56796..b08aeb3 100644 --- a/matrix-screensaver.py +++ b/matrix-screensaver.py @@ -80,7 +80,7 @@ def matrix_rain(stdscr, color_mode, timeout=None): current_color = COLOR_NAMES[color_index] next_color = current_color column_colors = [current_color] * len(column_colors) - elif key == 3: + elif key in (3, 27): # Ctrl+C or ESC break sh, sw = stdscr.getmaxyx()