qrc

QR code generator for text terminals (ASCII art, Sixel)

Github星跟踪图

QR code generator for text terminals

What's this?

This program generates QR codes in
ASCII art or
Sixel format for
text terminals, e.g., console, xterm (with -ti 340 option to enable Sixel),
mlterm,
Windows command prompt and so on.

Use case

You can transfer data to smartphones with a QR code reader application
from your terminal.

Usage

qrc program takes a text from command-line argument or standard
input (if no command-line argument) and encodes it to a QR code.

$ qrc --help
Usage: qrc [OPTIONS] [TEXT]

Options:
  -h, --help
    Show this help message
  -i, --invert
    Invert color

Text examples:
  http://www.example.jp/
  MAILTO:foobar@example.jp
  WIFI:S:myssid;T:WPA;P:pass123;;
$ qrc https://fumiyas.github.io/
...
$ qrc 'WIFI:S:Our-ssid;T:WPA;P:secret;;'
...

You can get a QR code in Sixel graphics if the standard output is
a terminal and it supports Sixel.

Download

Binary files are here for Linux, Mac OS X and Windows:

Build from source codes

If you have Go language environment, try the following:

$ go get github.com/fumiyas/qrc/cmd/qrc

TODO

  • Add the following options:
    • --format <aa, sixel>
    • --aa-color-scheme <ansi, windows>
    • --foreground-color R:G:B
    • --background-color R:G:B
    • --margin-color R:G:B
    • --margin-size N
    • --input-encoding E
  • Timeout for tty.GetDeviceAttributes1()

Contributors

  • Hayaki Saito (@saitoha)

Similar products

主要指标

概览
名称与所有者fumiyas/qrc
主编程语言Go
编程语言Go (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2014-08-09 13:45:31
推送于2024-04-12 06:29:18
最后一次提交2021-04-07 10:51:38
发布数2
最新版本名称v0.1.1 (发布于 )
第一版名称v0.1.0 (发布于 )
用户参与
星数380
关注者数5
派生数27
提交数45
已启用问题?
问题数9
打开的问题数5
拉请求数0
打开的拉请求数0
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?