ocaml / tuareg

Emacs OCaml mode
GNU General Public License v3.0
361 stars 79 forks source link

Using the terminal emulator Vterm (emacs-libvterm) #230

Open Fourchaux opened 4 years ago

Fourchaux commented 4 years ago

Tuareg 2.2.0 - Emacs 28.0 - OCaml 4.10.0

Trying (the excellent) Emacs-libvterm (Vterm) https://github.com/akermu/emacs-libvterm I wonder if it would be possible to run the OCaml REPL (e.g. with 'tuareg-eval-buffer') in a "vterm" buffer instead of the current "*OCaml*" buffer.

Thank you.

jeongsoolee09 commented 3 years ago

You can fire up a REPL in vterm, and use comint-send-string or comint-send-region. Just be sure to pass the buffer name where vterm is running.