kivattt
kivattt
I get the same error on my `Linux Mint 21.3 x86_64` laptop, though I can safely ignore it atleast if I'm just looking at `battery.State.String()`
```console $ /bin/ls -l /sys/class/power_supply/BAT1/ /bin/ls: cannot access '/sys/class/power_supply/BAT1/': No such file or directory ``` ```console $ /bin/ls -l /sys/class/power_supply/ total 0 lrwxrwxrwx 1 root root 0 Jul 19 19:07...
My bad, ```console $ /bin/ls -l /sys/class/power_supply/BAT0/ total 0 -rw-r--r-- 1 root root 4096 Jul 26 00:09 alarm -r--r--r-- 1 root root 4096 Jul 19 19:07 capacity -r--r--r-- 1 root...
I agree that makes sense for most cases where you show normal text as words. I should have clarified that I am using an input field with a command as...
You can add `hjkl` navigation by using [SetInputCapture](https://pkg.go.dev/github.com/rivo/tview#Box.SetInputCapture) on the modal This is what I've done before to add it to modals: https://github.com/kivattt/fen/blob/83643815f7e03aaf4c700e8342edfe20aeb95319/main.go#L271
You can use a style tag string with tcell's [color.String()](https://github.com/gdamore/tcell/blob/88b9c25c3c5ee48b611dfeca9a2e9cf07812c35e/color.go#L1021) for this: ```go "default color [" + tcell.ColorRed.String() + "]red foreground[-:-:-:-] default color" ``` https://pkg.go.dev/github.com/rivo/tview#hdr-Styles__Colors__and_Hyperlinks