Skip to content

Simple C program that draws a QR code on the linux console via modifying the framebuffer.

License

Notifications You must be signed in to change notification settings

dsx724/console-qrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple C program that draws a QR code on the linux console via modifying the framebuffer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages