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 cargo-like "mode line" at the bottom of terminal output #26

Open
cassaundra opened this issue Jan 4, 2024 · 3 comments
Open

Add cargo-like "mode line" at the bottom of terminal output #26

cassaundra opened this issue Jan 4, 2024 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@cassaundra
Copy link
Collaborator

Using ANSI styling, pin a list of all currently running tasks at the bottom of terminal outputs for those that support it.

Depends on #22, and best completed after #25.

@cassaundra cassaundra added the enhancement New feature or request label Jan 4, 2024
@cassaundra cassaundra added this to the quake 0.1.0 milestone Jan 4, 2024
@epage
Copy link
Collaborator

epage commented Jan 4, 2024

Cargo's mode line is very primitive to be as compatible as possible, to a paranoid level. You can likely use something like https://crates.io/crates/superconsole

@cassaundra
Copy link
Collaborator Author

Good to know. crossterm is already in the dependency tree, so I plan on implementing manually via that before resorting to a batteries included package. Will have to figure out some introspection of the current terminal's capabilities, in addition to checking whether or not output is currently being redirected. I'm assuming anstream would be a good fit for that?

@epage
Copy link
Collaborator

epage commented Jan 5, 2024

anstream can tell you whether coloring is supported. IsTerminal trait can tell you whether its interactive (which intersects with the question of color). I have not looked into how to auto detect whether more TUI-like capabilities are supported (yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants