xyzzy からDOS窓(cmd.exe)を開く

コレDOS窓版を作った。

  • カレントバッファがファイルのときは、そのファイルがあるフォルダで実行
  • そうじゃないときは、 xyzzy.exe があるフォルダで実行
  • M-x c で実行
(defun c ()
  (interactive)
  (let* ((fn (get-buffer-file-name))
         (ed::*launch-app-directory* (if fn (directory-namestring fn)
                                       (si:system-root))))
    (run-console)))

lisp/process.l の run-console (C-x c) を呼んでるだけ。
run-console と同じく、変数 *eshell* または *shell* を変更すれば cygwin とかにも対応できる。

cmd.exe のオプションとか、start のオプションとかよくわからん。

参考URL: