friendly-traceback / friendly

Friendly-traceback's version used in most situations
https://friendly-traceback.github.io/docs/index.html
MIT License
41 stars 5 forks source link

Attempt to use prompt-toolkit as an optional option to do syntax highlighting in the console #1

Closed aroberge closed 3 years ago

aroberge commented 3 years ago

Add the possibility of doing syntax highlighting in the friendly console from a terminal.

Without requiring prompt-toolkit as an option, make it possible to use it if it is available, in order to have syntax highlighting in the terminal.

If this can be done, it will be time to wrap up the 0.3.yyy series and jump to 0.4

aroberge commented 3 years ago

There seems to be a conflict with the rich console and the ptk prompt style which yielded inconsistent colours. Putting this idea aside for now.

aroberge commented 3 years ago

This will apparently be available with textual (https://github.com/willmcgugan/textual).