2025-03-14 21:59:59 -06:00
|
|
|
# qr
|
|
|
|
|
|
|
|
|
|
> Generate QR codes in the terminal with ANSI VT-100 escape codes.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://manned.org/qr>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Generate a QR code:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`qr "{{data}}"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
- Specify the error correction level (defaults to `M`):
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`qr --error-correction {{L|M|Q|H}} "{{data}}"`
|
|
|
|
|
|
|
|
|
|
- Generate a QR code from the output of another command:
|
|
|
|
|
|
|
|
|
|
`{{command}} | qr`
|
|
|
|
|
|
|
|
|
|
- Save the QR code as a PNG image:
|
|
|
|
|
|
|
|
|
|
`qr "{{data}}" > {{path/to/file.png}}`
|