From e1355b2e8749ea4b4dc98f430f5bc01ae877e339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Str=C3=B6ger?= Date: Wed, 5 Feb 2020 10:56:36 +0100 Subject: [PATCH] qrencode: add print to terminal examples (#3823) --- pages/common/qrencode.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/common/qrencode.md b/pages/common/qrencode.md index b6148686c..7e15de851 100644 --- a/pages/common/qrencode.md +++ b/pages/common/qrencode.md @@ -10,3 +10,11 @@ - Convert an input file to a QR code and save to an output file: `qrencode -o {{path/to/output_file.png}} -r {{path/to/input_file}}` + +- Convert a string to a QR code and print it in terminal: + +`qrencode -t ansiutf8 {{string}}` + +- Convert input from pipe to a QR code and print it in terminal: + +`echo {{string}} | qrencode -t ansiutf8`