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 TUI for command top #191

Open
Krysztal112233 opened this issue Aug 19, 2024 · 7 comments · May be fixed by #292
Open

Add TUI for command top #191

Krysztal112233 opened this issue Aug 19, 2024 · 7 comments · May be fixed by #292
Labels
bug Something isn't working enhancement New feature or request top

Comments

@Krysztal112233
Copy link
Collaborator

The current top command does not implement a TUI, it simply implements information collection and output.

@Krysztal112233 Krysztal112233 added bug Something isn't working enhancement New feature or request top labels Aug 19, 2024
@r3yc0n1c
Copy link

Hi, I’d like to work on this.

@cakebaker
Copy link
Contributor

@r3yc0n1c sure, go ahead :)

@r3yc0n1c
Copy link

can we use something like https://ratatui.rs/ ?

@cakebaker
Copy link
Contributor

Yes, I think that's fine. As I never used it before I don't know how suitable it is for this task, though.

@r3yc0n1c
Copy link

thanks... looking into it.

@r3yc0n1c r3yc0n1c linked a pull request Dec 30, 2024 that will close this issue
4 tasks
@r3yc0n1c
Copy link

hey @cakebaker, here's a POC of the TUI for top, built with the help of ratatui.rs. Currently, the top block is static string as it still needs to be implemented in the top.rs main file. Everything else is dynamically pulled from the main top.rs file. The TUI exits when we press 'q'.

@cakebaker
Copy link
Contributor

Looks good :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request top
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants