+;;; ---kermit---
+;;;
+;;; Configuration and definitions for Kermit.
+
+set escape-character ^]
+set terminal trigger KERMIT READY TO SERVE...
+
+;; If my terminal is UTF8 then try to use that consistently. This may not
+;; work, but in my world as it is it's quite likely to.
+local _lc_ctype
+if not def _lc_ctype if def \$(LC_ALL) assign _lc_ctype \$(LC_ALL)
+if not def _lc_ctype if def \$(LC_CTYPE) assign _lc_ctype \$(LC_CTYPE)
+if not def _lc_ctype if def \$(LANG) assign _lc_ctype \$(LANG)
+if match \m(_lc_ctype) *.utf8 {
+ set file character-set utf8
+ set terminal character-set utf8
+}
+
+;; Guest virtual consoles are frequently presented as Unix-domain sockets.
+def UNIX {
+ if < \v(argc) 1 -
+ end 1 Usage: UNIX socket
+ pipe nc -U \%1
+}
+
+;; Synchronize remote terminal size with local window.
+def syncwinsz output stty rows \v(rows) columns \v(cols)\13