Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Fourchaux opened this issue Apr 21, 2020 · 3 comments
Open

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

Fourchaux opened this issue Apr 21, 2020 · 3 comments

Comments

@Fourchaux
Copy link

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
Copy link

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.

@bbatsov
Copy link
Contributor

bbatsov commented Feb 28, 2025

@monnier I think you can close this ticket, as I don't think that vterm integration is in the scope of Tuareg.

@monnier
Copy link
Contributor

monnier commented Feb 28, 2025

I wouldn't mind adding support for REPLs in other kinds of buffers than comint.
Those REPL buffers would likely not enjoy any special Tuareg-specific support (like code highlighting and completion), but we could still offer limited ways to interact with them from Tuareg mode buffers.
My impression is that it can be done without many changes (as suggested by @jeongsoolee09).
I don't expect working on this myself, but... patches welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants