set attributes date on set block-check 3 set receive packet-length 512 set window 5 set file display crt # Set the default configuration if you want. # set modem att7300 # set line /dev/ph1 # set speed 1200 # If you're using a high speed modem, you'll probably want hardware flow # control. This is a bit different on the 3b1. Set up the port to use # hardware flow control with /etc/hfc_ctl (possibly are boot time) and # instruct kermit to use "keep" flow control, which tells kermit that # hfc is set on the port, and it need do nothing to use it. # set modem v32-telebit # set line /dev/tty000 # set speed 19200 # set flow-control keep # If we have a direct connection, we don't need to escape all the # control characters. If not direct, then perhaps we simply need # to escape a few more..... # set control unprefixed all # set control prefixed 1 # set control prefixed 129 # set control prefixed 13 # set control prefixed 141 # set control prefixed 3 # set control prefixed 131 # Check to see if we have the if command. If not, then we don't have # the script programming language, and thus we can't define any macros. # With "take error on", the "check if" will abort the script if "if" # isn't available. set take error on check if set take error off # Use fullscreen display, if we have it. Otherwise we use "crt", as # set above. check fullscreen if success set file display fullscreen # We add ^O (\15) to the prompt just in case we got switched to the # alternate character set (using ^N) from line noise. Another thing # to add is "\27[m" to turn off any character attributes (bold, etc.). set prompt {\15\v(host)> } # In the dial command we use t for tone. Use p if you want pulse dialing. # It only needs to be set once per-reboot, but there's no harm in doing it # all the time. Without t or p, modem will use whatever was last set. def dial_int - set modem att7300, - set line /dev/ph1, - set speed 1200, - dial t\%1, - if success connect # Alternately, we define a dial macro for an external modem. def dial_ext - set modem hayes, - set line /dev/tty000, - set speed 2400, - dial \%1, - if success connect # And finally "call" uses whichever is appropriate. def call - dial_int \%1 def example - call 123-4567