https://github.com/auties00/qrtoterminal
Prints a qr code generated from zxing to the terminal
https://github.com/auties00/qrtoterminal
ascii qr-code qrcode terminal utf8
Last synced: 3 months ago
JSON representation
Prints a qr code generated from zxing to the terminal
- Host: GitHub
- URL: https://github.com/auties00/qrtoterminal
- Owner: Auties00
- Created: 2022-07-25T21:06:36.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-11-06T20:06:29.000Z (almost 3 years ago)
- Last Synced: 2025-07-30T07:26:54.498Z (3 months ago)
- Topics: ascii, qr-code, qrcode, terminal, utf8
- Language: Java
- Homepage:
- Size: 8.79 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Qr code to terminal
### What is qr to terminal
Qr to terminal is a simple library to print qr codes generate using zxing to the terminal.
I wrote this library because there are equivalents for other programming languages, but I couldn't find any good one for Java.
Requires at least Java 11.
Inspired by [this thread](https://superuser.com/a/1420015).
### How to install
#### Maven
```xml
com.github.auties00
qr-terminal
2.1
```
#### Gradle
1. Groovy DSL
```groovy
implementation 'com.github.auties00:qr-terminal:2.1'
```
2. Kotlin DSL
```kotlin
implementation("com.github.auties00:qr-terminal:2.1")
```
### How to use
1. Full size ANSI blocks
```java
QrTerminal.print(matrix, false);
```

2. UTF-8 small blocks (recommended)
```java
QrTerminal.print(matrix, true);
```
