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

https://github.com/actuallytaylor/cereal


https://github.com/actuallytaylor/cereal

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Cereal 🥣
`cereal` is a terminal based Serial Console. It was written as an alternative to using `screen` for interacting with serial devices on macOS.

sample

## Installation
`cereal` is availabe via [Homebrew](https://brew.sh). It is not currently in the main homebrew repository, but there is a [PR](https://github.com/Homebrew/homebrew-core/pull/216795) waiting approval for its addition.
```
brew tap actuallytaylor/formulae
brew update
brew install cereal-console
```

## Features
- Connect to serial devices (tty, cu, etc...).
- If no device is provided to the command, you will be able to select from a list of connected serial ports.
- Set a baud rate for the serial connection.
- If no baud rate is provided, you can select from a set of commonly used baud rates. The default is 9600
- Receive and display *utf8* data from the serial connection.
- Keystrokes are captured and sent back to the serial connection.
- Exit with ctrl + c.
- Set Connection Parity.
- Set flow control options.
- Set # of stop bits.

## Command Line Usage
```
$ cereal -h
USAGE: cereal [--version] [--device ] [--baud-rate ] [--one] [--two] [--none] [--odd] [--even] [--rts_cts] [--dtr_dsr] [--dcd]

OPTIONS:
-v, --version Print version
-d, --device Path to Serial Device.
-b, --baud-rate
Buad rate for serial connection
--one/--two # of Stop Bits for the serial connection. (default:
--one)
--none/--odd/--even Parity for the serial connection. (default: --none)
--rts_cts/--dtr_dsr/--dcd
Flow Control options (multiple options allowed)
-h, --help Show help information.
```

## TODO
1. Add keybinds to toggle RTS & DTR pins.
2. Add a view of the current state of the RTS, DTR, CTS, DSR, and DCD pins.

## Credits
- [Swift Argument Parser](https://github.com/apple/swift-argument-parser.git)
- [ANSITerminal](https://github.com/pakLebah/ANSITerminal.git)
- [ORSSerialPort](https://github.com/armadsen/ORSSerialPort)