2020-01-20 20:58:38 +00:00
|
|
|
# qr
|
|
|
|
|
|
|
|
> Generate QR codes in the terminal with ANSI VT-100 escape codes.
|
2025-04-25 21:19:03 +03:00
|
|
|
> More information: <https://manned.org/qr>.
|
2020-01-20 20:58:38 +00:00
|
|
|
|
|
|
|
- Generate a QR code:
|
|
|
|
|
2025-04-27 00:52:05 +03:00
|
|
|
`qr "{{data}}"`
|
2020-01-20 20:58:38 +00:00
|
|
|
|
2025-04-27 00:52:05 +03:00
|
|
|
- Specify the error correction level (defaults to `M`):
|
2020-01-20 20:58:38 +00:00
|
|
|
|
2025-04-27 00:52:05 +03: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}}`
|