feat: add progress bar to timer
- add progress package for visual feedback
- implement calc_percentage function for duration calculation
- update TerminalOutput to include progress percentage and view
🤖
This commit is contained in:
parent
94e7b41421
commit
6b90db0d6c
4 changed files with 27 additions and 4 deletions
|
@ -25,7 +25,7 @@ func (a app) View() string {
|
|||
}
|
||||
|
||||
helpView := a.help.View(a.keys)
|
||||
height := 8 - strings.Count(body, "\n") - strings.Count(serverStatus, "\n") - strings.Count(helpView, "\n")
|
||||
height := 10 - strings.Count(body, "\n") - strings.Count(serverStatus, "\n") - strings.Count(helpView, "\n")
|
||||
|
||||
return body + strings.Repeat("\n", height) + serverStatus + helpView
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue