Skip to content

Latest commit

 

History

History
35 lines (31 loc) · 1.11 KB

README.md

File metadata and controls

35 lines (31 loc) · 1.11 KB

console-qrcode

Simple C program that draws a QR code on the linux console via modifying the framebuffer. The QR code will only show up on the host console and not on X or over SSH. See example.png. The QR code is generated via libqrencode. Apache 2.0 License.

compile

sudo apt-get install libqrencode-dev
gcc console-qrcode.c -o console-qrcode -lqrencode -O3 -Wall -std=c99

usage

sudo apt-get install libqrencode3
sudo ./console-qrcode [OPTION]... [INPUT]
echo [INPUT] | sudo ./console-qrcode [OPTION]...

arguments

-p --module_pixels		size of module in pixels: 1-9
-w --border_width_modules	width of the border in modules: 0-9
-h --border_height_modules	height of the border in modules: 0-9
-x --x_offset			horizontal offset from top right in pixels
-y --y_offset			vertical offset from top right in pixels
-v --verbose