Skip to content

Instantly share code, notes, and snippets.

@stonehippo
Last active August 29, 2015 14:10
Show Gist options
  • Save stonehippo/e5347cae0bf5890e9aa3 to your computer and use it in GitHub Desktop.
Save stonehippo/e5347cae0bf5890e9aa3 to your computer and use it in GitHub Desktop.
Serial emulation in OS X Terminal Using screen

Serial emulation in OS X Terminal Using screen

Every once in a while, I need to connect to a serial/TTY device in OS X. I could get a terminal emulation app like ZTerm, or fire up the Arduino IDE (which has a simple terminal emulation interface), but sometimes it's just easier to open up Terminal.app and go from there.

The screen command can work as a simple terminal emulator. Here's how that works

$ screen /dev/[TTY device] [baud]

For example, here's a concrete example

$ screen/dev/tty.serial101 115200

Alternatives

screen is available on all OS X systems, all the time, so it's a fine thing to fall back on. However, it's not exactly full featured. There are several alternatives, but I like picocom. It's small, useful and reliable. It can be installed with brew picocom if you've got Homebrew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment