home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
me34src.zip
/
me3
/
mutt
/
package
/
unix.mut
< prev
next >
Wrap
Lisp/Scheme
|
1995-01-14
|
870b
|
34 lines
;; Unix stuff that goes in osstuff.mco
;; C Durland Public Domain
(defun chmod
{
(string mod)
(mod (ask "chmod " (file-name -1) " to: "))
(shell-command (concat "chmod " mod " " (file-name -1)))
})
(defun MAIN
{
(if (or
(not (pgm-exists "version-query")) ;; old ME
(not (version-query "display-driver" "X"))) ;; Not running X
; set up the soft keys if the terminal type is known
(switch (getenv "TERM")
"xterm" (load-code "xterm" FALSE)
"ansi" (load-code "xterm" FALSE)
"aixterm" (load-code "xterm" FALSE)
"2622" (load-code "hpterm" FALSE)
"98547" (load-code "hpterm" FALSE)
"98550" (load-code "hpterm" FALSE)
default ;; try some guessing games
{
(cond
(re-string 'vt' (getenv "TERM")) (load-code "xterm" FALSE)
(re-string 'hp' (getenv "TERM")) (load-code "hpterm" FALSE)
)
}
))
})