ov
ov copied to clipboard
Hangs in Git Bash (MINGW46) on Windows 10
The pager hangs and does nothing e.g.
package main
import (
"bytes"
"github.com/noborus/ov/oviewer"
)
func main() {
doc, err := oviewer.NewDocument()
if err != nil {
panic(err)
}
if err := doc.ReadAll(bytes.NewBufferString("hiho")); err != nil {
panic(err)
}
ov, err := oviewer.NewOviewer(doc)
if err != nil {
panic(err)
}
if err := ov.Run(); err != nil {
panic(err)
}
}
```
I was able to confirm that the code shown works on windows 10, but I don't know the mingw environment. sorry.
Sorry, meant Git Bash. To test: Just install Git with Git Bash on Windows and run the generated binary in Git Bash.
I tried to install it and it worked.
$ /mingw64/bin/git --version
git version 2.41.0.windows.3
$ file /c/Users/noborus/dev/bin/ov
/c/Users/noborus/dev/bin/ov: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows, 13 sections
Oops, sorry.
The code above also worked.