Skip to main content
WezTerm can connect directly to serial ports, making it an ideal tool for embedded systems development, Arduino programming, and accessing server console ports.

Basic Usage

Connect to a serial port from the command line:

Specifying Baud Rate

Set the connection speed with the --baud flag:
Custom Baud Rate

Common Baud Rates

Use Cases

Arduino Development

Connect to Arduino boards for serial monitor functionality:
Arduino Serial Monitor
Arduino sketch example:
Arduino Sketch

ESP32/ESP8266 Development

ESP32 Connection

Server Console Access

Connect to server console ports for out-of-band management:
Server Console

Embedded Linux

Embedded Linux Console

Networking Equipment

Access Cisco, Juniper, and other network device consoles:
Network Device Console

Limitations

When operating in serial mode:
  • You cannot create new tabs in a serial connection window
  • Serial mode is dedicated to the single serial port connection
  • To use multiple serial ports, open separate WezTerm windows

Multiple Serial Connections

To work with multiple serial devices simultaneously, use separate terminal windows:
Multiple Devices

Finding Serial Devices

Permissions (Linux/macOS)

You may need permissions to access serial devices:
1

Check current permissions

2

Add user to serial group

3

Log out and back in

Changes take effect after logging out and back in, or run:
4

Verify access

Troubleshooting

Device Not Found

Check Device Existence

Permission Denied

Fix Permissions

Wrong Baud Rate

If you see garbled characters:
  1. Verify the device’s baud rate in documentation
  2. Try common rates: 9600, 115200, 38400
  3. Check device settings (Arduino sketch, firmware config)

No Output

If connected but seeing no data:
Troubleshooting Steps

Comparison to Other Serial Tools

Tips and Tricks

  1. Create shell aliases for frequently used devices:
    Shell Aliases
  2. Use udev rules (Linux) to create stable device names:
    /etc/udev/rules.d/99-usb-serial.rules
  3. Monitor connection state with device LEDs or system logs
  4. Save important output using WezTerm’s scrollback feature
  5. Use search (Ctrl+Shift+F) to find specific messages in serial output

Best Practices

1

Verify device specs

Always check device documentation for correct baud rate and settings.
2

Set up permissions once

Add your user to the appropriate group rather than using sudo repeatedly.
3

Use stable device names

On Linux, use /dev/serial/by-id/* for consistent device identification.
4

Close connections properly

Exit WezTerm cleanly to release the serial port for other applications.