Hello! Thanks for working on this very helpful package and for keeping the QR code stuff active in the Go ecosystem.
I have a proposal and I'd like to hear your thoughts.
The current terminal writer uses Termbox, which is nice but difficult to integrate with for better control over CLI tools. It's especially challenging to display a QR code in the terminal without creating a whole new screen. Additionally, Termbox is no longer maintained.
I'm proposing a terminal v2 writer that uses *os.File for output. I chose *os.File instead of io.Writer because it has a better chance of displaying correctly. I also added a Bitmap() method, which I found useful when working with the skip2 package.
using this writer should be as simple as doing that
Hello! Thanks for working on this very helpful package and for keeping the QR code stuff active in the Go ecosystem. I have a proposal and I'd like to hear your thoughts.
The current terminal writer uses Termbox, which is nice but difficult to integrate with for better control over CLI tools. It's especially challenging to display a QR code in the terminal without creating a whole new screen. Additionally, Termbox is no longer maintained.
I'm proposing a terminal v2 writer that uses
*os.File
for output. I chose*os.File
instead ofio.Writer
because it has a better chance of displaying correctly. I also added aBitmap()
method, which I found useful when working with the skip2 package.using this writer should be as simple as doing that
full example
If you're happy with it, I can raise a PR.