dot/mykermrc, bin/guest-console: Kermit configuration.
[profile] / dot / kermrc
CommitLineData
73bb9001
MW
1;;; ---kermit---
2;;;
3;;; Configuration and definitions for Kermit.
4
5set escape-character ^]
6set terminal trigger KERMIT READY TO SERVE...
7
8;; If my terminal is UTF8 then try to use that consistently. This may not
9;; work, but in my world as it is it's quite likely to.
10local _lc_ctype
11if not def _lc_ctype if def \$(LC_ALL) assign _lc_ctype \$(LC_ALL)
12if not def _lc_ctype if def \$(LC_CTYPE) assign _lc_ctype \$(LC_CTYPE)
13if not def _lc_ctype if def \$(LANG) assign _lc_ctype \$(LANG)
14if match \m(_lc_ctype) *.utf8 {
15 set file character-set utf8
16 set terminal character-set utf8
17}
18
19;; Guest virtual consoles are frequently presented as Unix-domain sockets.
20def UNIX {
21 if < \v(argc) 1 -
22 end 1 Usage: UNIX socket
23 pipe nc -U \%1
24}
25
26;; Synchronize remote terminal size with local window.
27def syncwinsz output stty rows \v(rows) columns \v(cols)\13