An open API service indexing awesome lists of open source software.

https://github.com/ripred/fansi

Arduino library that easily allows sending ANSI control sequences to a PC, Mac, or Linux machine. The PC, Mac, and Linux sides are even easier! Just copy from the serial port directly to the console! 😎
https://github.com/ripred/fansi

Last synced: about 1 year ago
JSON representation

Arduino library that easily allows sending ANSI control sequences to a PC, Mac, or Linux machine. The PC, Mac, and Linux sides are even easier! Just copy from the serial port directly to the console! 😎

Awesome Lists containing this project

README

          

[![Arduino CI](https://github.com/ripred/fANSI/workflows/Arduino%20CI/badge.svg)](https://github.com/marketplace/actions/arduino_ci)
[![Arduino-lint](https://github.com/ripred/fANSI/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/ripred/fANSI/actions/workflows/arduino-lint.yml)
![code size:](https://img.shields.io/github/languages/code-size/ripred/fANSI)
[![GitHub release](https://img.shields.io/github/release/ripred/fANSI.svg?maxAge=3600)](https://github.com/ripred/fANSI/releases)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/ripred/fANSI/blob/master/LICENSE)

fANSI Library

This library allows you to send ANSI control sequences to a PC, Mac, or Linux
machine simply by sending to the Arduino Serial port.

You can view the output in any terminal or console window on any operating system
that supports ANSI escape sequences.

Includes support for 4-bit, 6-bit, and full 24-bit color support in common
terminal window output from any microcontroller that can output serial data
at 9600 N81. Which is pretty much every one.

Includes support for cursor on/off, cursor positioning, erasing to end-of-display
or to end-of-line, alternate screen buffers, borders, and more!

To display the output from the Arduino or other MCU just copy from the COM port or device to your console output:

```
ripred$ ls /dev/cu.usb*
/dev/cu.usbserial-0001
ripred$
ripred$
ripred$ cat /dev/cu.usbserial-0001
```
![ANSIexample.png](ANSIexample.png)