3 56142b9f 2021-05-26 op vmd is an Emacs package to interact with [OpenBSD' vmd][vmd].
5 12537540 2021-05-26 op ![vmd buffer with transient open](vmd.png)
8 24b53322 2021-05-26 op ### vterm integration
10 24b53322 2021-05-26 op To use vterm (or any other packages really) to handle a shell for the
11 24b53322 2021-05-26 op console, `vmd-console-function` must point to a function that accepts
12 24b53322 2021-05-26 op two parameters, name and cmd, and execute cmd (a list of strings) in
13 24b53322 2021-05-26 op your preferred terminal. By default, `ansi-term` (bundled with Emacs)
14 24b53322 2021-05-26 op is used, so it's easy to switch to vterm:
17 24b53322 2021-05-26 op (defun my/vmd-vterm (name cmd)
18 24b53322 2021-05-26 op (let ((vterm-shell (mapconcat #'shell-quote-argument cmd " "))
19 24b53322 2021-05-26 op (vterm-buffer-name (concat "*" name "*")))
21 24b53322 2021-05-26 op (setq vmd-console-function #'my/vmd-vterm)
25 56142b9f 2021-05-26 op [vmd]: http://man.openbsd.org/vmd