A simple serial terminal.
The code has been adapted from a Ruby script in the Rust Raspberry Pi OS Tutorials.
- Learn to read Ruby scripts.
- Learn about terminals and unix standard streams.
- To facilitate kernel development.
Take note of the dependencies required to interact with the serial port on your computer. You will also need a serial cable for you device.
- Run
just install
to build and install miniterm.
Your computer will thrash when you run miniterm. This is caused by 2 busy loops running on 2 threads. Each one is waiting or shuffling bytes in one direction or the other.