This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
guides:virtual_modem:script [2020-02-27 22:47] omolini [vmodem.sh] |
guides:virtual_modem:script [2020-02-27 23:19] omolini |
||
---|---|---|---|
Line 90: | Line 90: | ||
# Default is 1. | # Default is 1. | ||
resultverbose=1 | resultverbose=1 | ||
+ | |||
+ | # Variable: TERM | ||
+ | # Tells the script and environment which type of terminal to emulate. | ||
+ | # It is only useful to change this, if you're using a serial | ||
+ | # terminal to connect to this script. If you're connecting form a ANSI | ||
+ | # cabable machine such as DOS, you may want to use TERM="ansi" | ||
+ | # | ||
+ | TERM="vt100" | ||
# EXPORT SHELL VARS | # EXPORT SHELL VARS | ||
Line 95: | Line 103: | ||
export serport | export serport | ||
export baud | export baud | ||
+ | export TERM | ||
# FUNCTIONS | # FUNCTIONS | ||
Line 225: | Line 234: | ||
exec 99>&- | exec 99>&- | ||
# Execute dialed script | # Execute dialed script | ||
- | /sbin/getty -8 -L $serport $baud vt100 -n -l "./$number.sh" | + | /sbin/getty -8 -L $serport $baud $TERM -n -l "./$number.sh" |
# Reset serial settings | # Reset serial settings | ||
ttyinit | ttyinit | ||
Line 406: | Line 415: | ||
#!/bin/bash | #!/bin/bash | ||
# | # | ||
+ | # If you have an ANSI color capable terminal, you may want to export TERM=ansi | ||
export TERM=vt100 | export TERM=vt100 | ||
echo "Terminal type set to $TERM. Running Lynx ..." | echo "Terminal type set to $TERM. Running Lynx ..." |