3 ;;; Configuration and definitions for Kermit.
5 assign _profile @profile@/
6 assign _dot \v(home).kermit/
9 set escape-character ^]
10 set flow-control /direct-serial rts/cts
11 set flow-control /modem rts/cts
13 set options directory /brief
14 set terminal trigger KERMIT READY TO SERVE...
17 ;; Dialling parameters.
18 set dial country-code 44
19 set dial area-code 1223
21 set dial toll-free-area-code 800
23 set dial intl-prefix 00
28 for \%i 1 \fdim(&v) 1 {
30 if def _dir assign _dir \m(_dir) \&v[\%i]
31 else assign _dir \&v[\%i]
39 \m(_profile)kermit/net.shared -
43 set network directory \m(_dir)
46 \m(_profile)kermit/dial.shared -
50 set dial directory \m(_dir)
52 ;; If my terminal is UTF8 then try to use that consistently. This may not
53 ;; work, but in my world as it is it's quite likely to.
55 if not def _lc_ctype if def \$(LC_ALL) assign _lc_ctype \$(LC_ALL)
56 if not def _lc_ctype if def \$(LC_CTYPE) assign _lc_ctype \$(LC_CTYPE)
57 if not def _lc_ctype if def \$(LANG) assign _lc_ctype \$(LANG)
58 if match \m(_lc_ctype) *.utf8 {
59 set file character-set utf8
60 set terminal character-set utf8
63 ;; Set the HTTP proxy from the environment.
64 if def \$(http_proxy) {
65 assign \%n \fsplit(\$(http_proxy),&v,/)
66 set tcp http-proxy \&v[2]
69 ;; Guest virtual consoles are frequently presented as Unix-domain sockets.
72 end 1 Usage: UNIX socket
76 ;; Connect to a kermit SSH subsystem.
79 end 1 Usage: KERMSSH [options] [user@]host
81 pty ssh -enone -st \%* kermit
84 ;; Console over null-modem cable.
86 if > \v(argc) 1 set speed \%1
87 if > \v(argc) 2 set serial \%2
95 ;; Synchronize remote terminal size with local window.
96 def syncwinsz output stty rows \v(rows) columns \v(cols)\13
98 ;; Local configuration.
99 if exist \m(_dot)config take \m(_dot)config