Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an example using the Python Prompt Toolkit #24

Open
deeplook opened this issue Nov 3, 2017 · 0 comments
Open

Add an example using the Python Prompt Toolkit #24

deeplook opened this issue Nov 3, 2017 · 0 comments
Assignees

Comments

@deeplook
Copy link
Owner

deeplook commented Nov 3, 2017

The example should display a sparkline in a shell status bar using the excellent Python Prompt Toolkit. For thrills this should be a dynamically updated sparkline showing something like the CPU load value over time, updated once per second. I have to dig out some older attempt at this with code which was about 70% done...

Since I can't attach Python files here I've added some prototypical code as a gist. This dates back to May 2016, so it might need less prompt_toolkit imports today to achieve the same thing... But in principle it should be more of a real status bar that displays modestly on the lower window edge while one still can use the terminal as usual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant