Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 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 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-06T20:06:29.000Z (about 2 years ago)
- Last Synced: 2024-10-02T08:04:09.266Z (3 months ago)
- Topics: ascii, qr-code, qrcode, terminal, utf8
- Language: Java
- Homepage:
- Size: 8.79 KB
- Stars: 3
- 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);
```![](https://user-images.githubusercontent.com/28218457/180877477-c8360128-62b7-48fe-96c9-bdc17e8fb2b3.png)
2. UTF-8 small blocks (recommended)
```java
QrTerminal.print(matrix, true);
```![](https://user-images.githubusercontent.com/28218457/180877136-bd54c647-1507-4743-8111-74d9e41c4e9f.png)