aboutsummaryrefslogtreecommitdiffstats
path: root/gotrc-examples/baudrate
blob: 2b8a95c52bec786b2788681c7a6d63910e37f7e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
}