We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I need to invoke pager in my app to display long text. Here is the sample code:
package main import ( "fmt" "os" "os/exec" "strings" "github.com/fatih/color" ) func main() { var Yellow = color.New(color.FgYellow).SprintfFunc() fmt.Println(Yellow("from fmt.Println")) var pager = exec.Command("less", "-F") pager.Stdin = strings.NewReader(Yellow("from pager")) pager.Stdout = os.Stdout err := pager.Run() if err != nil { fmt.Println(err) } }
It worked on Archlinux:
but failed on Debian (bookworm, on rasberrypi) and latest MacOS:
I don't think this was caused by your package but I wonder if you have any idea how to fix it. Thanks very much.
The text was updated successfully, but these errors were encountered:
Did you solve this? I'm having this same issue, on ArchLinux.
Sorry, something went wrong.
@sentientmachin3 Unfortunately no. But it doesn't happen on my Archlinux. I'm using i3wm with xorg.
No branches or pull requests
Hi,
I need to invoke pager in my app to display long text. Here is the sample code:
It worked on Archlinux:
but failed on Debian (bookworm, on rasberrypi) and latest MacOS:
I don't think this was caused by your package but I wonder if you have any idea how to fix it.
Thanks very much.
The text was updated successfully, but these errors were encountered: