diff options
| author | Mattias Andrée <maandree@operamail.com> | 2013-10-27 02:26:30 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@operamail.com> | 2013-10-27 02:26:30 +0100 |
| commit | a79b2af79c7d8a202eb212aeb815a89494153d9a (patch) | |
| tree | a51b410a77f397f7299fff558a913161213a6cb8 /gotrc-examples/baudrate | |
| parent | fix info dir entry typo (diff) | |
| download | gates-of-tartaros-a79b2af79c7d8a202eb212aeb815a89494153d9a.tar.gz gates-of-tartaros-a79b2af79c7d8a202eb212aeb815a89494153d9a.tar.bz2 gates-of-tartaros-a79b2af79c7d8a202eb212aeb815a89494153d9a.tar.xz | |
add baudrate module
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'gotrc-examples/baudrate')
| -rw-r--r-- | gotrc-examples/baudrate | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gotrc-examples/baudrate b/gotrc-examples/baudrate new file mode 100644 index 0000000..2b8a95c --- /dev/null +++ b/gotrc-examples/baudrate @@ -0,0 +1,20 @@ +# -*- shell-script -*- + +# This module allows you to configure baudrate on the computer-side +# of a serial terminal by setting the environment variable BAUDRATE +# to the baudrate in the baud unit, with only ditial. +# +# It is highly recommended to set this as the first loaded module +# so that the output does not get mangled. + + +display_function_baudrate=$display_function +display_function=_display_baudrate + +_display_baudrate () +{ + if [ ! "${BAUDRATE}" = "" ]; then + stty ${BAUDRATE} + fi +} + |
