From f385b5601ba1f466fabd325d4b274244a0427fc4 Mon Sep 17 00:00:00 2001 From: jmdejong Date: Sun, 28 May 2017 21:44:08 +0200 Subject: [PATCH 1/3] Ignore curs_set(0) error ~sui has mentioned that botany always crashes for him with the stack trace: Traceback (most recent call last): File "/home/curiouser/botany/botany.py", line 543, in botany_menu == CursedMenu(my_plant,my_data) File "/home/curiouser/botany/menu_screen.py", line 19, in __init__ curses.curs_set(0) _curses.error: curs_set() returned ERR According to the docs, an error will be returned when the terminal does not support the visibility requested. Appearently hiding the cursor is not supported in ~sui's terminal (cmder). To keep botany as accesible as possible I suggest to ignore this error --- menu_screen.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/menu_screen.py b/menu_screen.py index bf92ba1..12fb563 100644 --- a/menu_screen.py +++ b/menu_screen.py @@ -16,7 +16,13 @@ class CursedMenu(object): curses.noecho() curses.raw() curses.start_color() - curses.curs_set(0) + try: + curses.curs_set(0) + except curses.error: + # Not all terminals support this functionality. + # When the error is ignored the screen will look a little uglier, but that's not terrible + # So in order to keep botany as accesible as possible to everyone, it should be safe to ignore the error. + pass self.screen.keypad(1) self.plant = this_plant self.user_data = this_data From b4c4c115df69bf2fc1fe49c76b4454ca69f40ea0 Mon Sep 17 00:00:00 2001 From: Jake Funke Date: Fri, 23 Jun 2017 09:44:28 -0700 Subject: [PATCH 2/3] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 4e00fcb..0d1be9a 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,6 @@ Check in and water your plant every 24h to keep it growing. 5 days without water *"We do not 'come into' this world; we come out of it, as leaves from a tree." - Alan Watts* -*(work in progress)* - ## getting started botany is designed for unix-based systems. Clone into a local directory using `$ git clone https://github.com/jifunks/botany.git`. From f46bf8de9b81dab670792047c3df6807a3a4697c Mon Sep 17 00:00:00 2001 From: Jake Funke Date: Fri, 23 Jun 2017 09:45:17 -0700 Subject: [PATCH 3/3] Update README.md --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0d1be9a..b3a2d0b 100644 --- a/README.md +++ b/README.md @@ -55,14 +55,11 @@ If your plant goes 5 days without water, it will die! ### to-dos * Finish garden feature * Water neighbor's plants -* Harvest plant at end of life (gather seeds) - * Plant pollination - cross-breed with neighbor plants to unlock second-gen plants +* Plant pollination - cross-breed with neighbor plants to unlock second-gen plants * Share seeds with other users * Global events * Server API to have rain storms, heat waves, insects -* Name your plant -* Reward for keeping plant alive - * Hybridization, lineage tracking +* Hybridization, lineage tracking ## requirements * Unix-based OS (Mac, Linux)