A Picocom Wrapper

My favorite serial port program is picocom because it's simple and runs right in my existing terminal emulator (no PuTTY or other GUI terminal emulator funkiness).

When I first started using it a few years ago, I kept forgetting how to exit it, so I wrote this wrapper to remind myself in the terminal's title bar.



# picocom.sh: Start picocom and remind the user how to exit.
# Copyright (C) 2021, Remington Furman

# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty, provided the copyright
# notice and this notice are preserved. This file is offered as-is,
# without any warranty.


    echo "\033]0;${1}\007"

# Set window title
echo -ne "$(TITLE "picocom $DEVICE -- C-a C-x to exit")"

/usr/bin/picocom -b "$BAUD" "$DEVICE"

© Copyright 2023, Remington Furman