You could already use qr codes in the terminal because we’ve had black blocks and spaces for 60 years.
Would it still work when someone uses a white theme vs. a black theme for their terminal?
No, generally not. Some QR scanners will scan "inverted" codes, but it is outside of the spec.
I usually just select the qr code in the terminal to invert it and then scan it :)
Officially you do need to have the ‘dead space’ white area around the symbol as well or it won’t scan easily.
The 2015 spec clearly call for support for both dark over light and light over dark, and doesn't constrain light and dark to black and white.
You can usually define force and background colors in the Terminal, so you could force black on white. But then again someone can redefine the colors in their terminal.
Some terminal emulators also support rgb; so a smart QR code program should be able to do it.
> Some terminal emulators also support rgb
* Most. Even cmd does.
Absolutely. A couple of years ago when my son was really into Beyblade Burst, I wrote a little script that displayed Beyblade codes in the terminal (they're not QR but a different kind of 2D black-and-white "barcodes"). The Android app would scan those just fine.