Open Nova38 opened 3 years ago
The above code no longer works. It now generates the following error. "ValueError: bad file descriptor".
The root of the error is the get_terminal_size() function from the OS module.
So after some testing that error was on rich 10.16. Rich 10.12 is still working. So if anyone wants to use rich they should make sure the installed version is 10.12 (other versions may work but the current release dosn't)
Potential utilizes a library like rich (https://rich.readthedocs.io/en/latest/protocol.html) to enhance the output of the REPL to make scripting development easier to do by colorizing it. It has a command to auto color the output of a REPL via the pretty.install() call. It also includes a better inspect function those outputs much cleaner debugging output.
I currently can get it to mostly work by importing and running the following commands but including it on the backend would stop it having to be manually typed in every time.