• Stars
    star
    341
  • Rank 123,299 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created about 10 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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:[email protected]
  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

More Repositories

1

home-commands

My ~/bin/* commands
Shell
122
star
2

wcwidth-cjk

Run command with CJK-friendly wcwidth(3) to fix ambiguous width chars
C
56
star
3

python-nkf

Python Japanese codecs by NKF (Network Kanji Filter)
C
17
star
4

dnsq-go

djbdns's dnsq(1) and dnsqr(1) clone implemeted in golang
Go
16
star
5

libiconv-utf8mac

GNU libiconv with UTF-8-MAC support (Port from Apple's GNU libiconv)
C
16
star
6

ruby-net-smb

Ruby SMB/CIFS client class (Samba libsmbclient binding)
C
15
star
7

eijiro-fpw

英辞郎 → EPWING (JIS X 4081) 変換スクリプト
Perl
15
star
8

LTSV.sh

Labeled Tab-Separated Value parser / manipulator for shell
Shell
13
star
9

translation-ja

各種文書の日本語訳
12
star
10

hyperestraier-encore

Full-text search engine (fork of Hyper Estraier 1.4.13)
C
8
star
11

qmail-book-ja

絶版書籍「qmailで作る快適メールサーバー」のオンライン版
CSS
8
star
12

samba-virusfilter

Samba-VirusFilter - On-access anti-virus filter for Samba (DISCONTINUED. See vfs_virusfilter(8) in Samba upstream)
C
8
star
13

zfs-backup

ZFS backup script (from local/remote to local/remote over ssh)
Shell
7
star
14

linux-crypthome

Mount/Unmount an encrypted user's home directory at login/logout
Shell
7
star
15

openfadvise

Command wrapper to call posix_fadvise(2) after open(2) automatically
C
6
star
16

home-dot-files

My ~/.* files
Shell
6
star
17

Tweet.sh

Twitter client implemented in bash/ksh/zsh
Shell
6
star
18

syslog-redirect

Preloadable library to redirect syslog(3) output to stderr
C
5
star
19

Git.sh

Git.sh (Shit): Git implementation written in bash
Shell
4
star
20

mailman-hack

Python
4
star
21

ruby-writing-extension-in-c

Ruby の拡張を C 言語で書くための薄い本
Ruby
4
star
22

fumiyas.github.io

My blog site
Shell
3
star
23

ansible-playbooks

My Ansible playbooks
Perl
2
star
24

Yamada.sh

Dancing Yamada
Shell
2
star
25

homebrew-echo-sd

Ruby
2
star
26

smbldap-tools

Perl
2
star
27

djbware-doc-ja

daemontools, ucspi-tcp (一部), djbdns (一つ) の日本語マニュアル
2
star
28

pdns-scripts

PowerDNS Lua scripts
Lua
2
star
29

pdns-backend-command

PowerDNS pipe/coprocess backend command (Proof of concept)
2
star
30

symlink-busters

Symlink Busters 「Symlink め…駆逐してやる!この世から 一匹残らず!」
Shell
2
star
31

apache-mod-allowfileowner

Apache HTTPD: mod_allowfileowner - Restrict owner of static content files
C
2
star
32

linux-statfs-faker

Preloadable library to fake Linux statfs(2) information
C
2
star
33

debian-on-qemu

Bootstrap a Debian/GNU Linux system on QEMU (armhf/armel/amd64)
Shell
1
star
34

openssl-hack

Shell
1
star
35

mailman-ja-utf8-debian

Mailman 2.1 の Debian パッケージ、日本語 UTF-8 対応と独自拡張入り
Python
1
star
36

openam-hack

OpenAM hacks (junk tools and misc)
Python
1
star
37

ruby-stringglob

Generate a Regexp object from a glob(3) pattern
Ruby
1
star
38

packer-template

My Packer templates and builder script
Shell
1
star
39

iconv-nkf

NKF の iconv(3) 互換 API と $LD_PRELOAD ライブラリー
C
1
star
40

usb-bootstrap

Create a bootable mini OS env on USB disk (WIP)
Shell
1
star
41

windows-hack

Batchfile
1
star
42

ruby-uri-smb

Ruby URI::SMB class
Ruby
1
star
43

shell-playground

Playground for sh, bash, ksn, zsh and misc
Shell
1
star
44

Reverb.sh

Portable 'echo' command replacement
Shell
1
star
45

linux-legacynetcmd2iproute2

Generate Linux iproute command-line from legacy net-tools command-line
Shell
1
star
46

pdns-backend-samba-ldb

PowerDNS Samba/LDB backend
1
star
47

nss-nameip-hosts

NSS (Name Service Switch, aka nsswitch.conf) library for NameIP hostname <-> IP address in AWS
C
1
star
48

ruby-uri-component

Ruby URI::Component::* classes
Ruby
1
star
49

benchmark-filesystem

Shell
1
star