diff options
| author | Gabriele Bozzola <sbozzolator@gmail.com> | 2020-07-12 06:17:48 -0700 |
|---|---|---|
| committer | Gabriele Bozzola <sbozzolator@gmail.com> | 2020-07-13 06:38:24 -0700 |
| commit | 946366b0e6ccdb5f419f5976ceae27f68ac48e5e (patch) | |
| tree | 423c4799f1d550ef81709d85b0e529a92c7eb90d | |
| parent | 80ec46a4bdacf57c78e542da7fdeef3a553cb33d (diff) | |
Expand docstring of vterm-prompt-detection-method
| -rw-r--r-- | README.md | 7 | ||||
| -rw-r--r-- | vterm.el | 16 |
2 files changed, 18 insertions, 5 deletions
@@ -38,15 +38,16 @@ For the long answer, let us discuss the differences between `eshell`, `shell`, directly manipulate the output using escape codes. Hence, many interactive applications (like the one aforementioned) work with `term`. However, `term` and `ansi-term` do not implement all the escapes codes needed, so some - programs do not work properly. Moreover, `term` has performance inferior + programs do not work properly. Moreover, `term` has inferior performance compared to standalone terminals, especially with large bursts of output. - `vterm`: like `term` it is a terminal emulator. Unlike `term`, the core of `vterm` is an external library written in C, `libvterm`. For this reason, `vterm` outperforms `term` and has a nearly universal compatibility with terminal applications. -Therefore, vterm is not for you if you are using Windows, or if you cannot set -up Emacs with support for modules. +Vterm is not for you if you are using Windows, or if you cannot set up Emacs +with support for modules. Otherwise, you should try vterm, as it provides a +superior terminal experience in Emacs. Using `vterm` is like using Gnome Terminal inside Emacs: Vterm is fully-featured and fast, but is not as well integrated in Emacs as `eshell` (yet), so some of @@ -300,12 +300,24 @@ rendered as normal ones." :group 'vterm) (defcustom vterm-copy-exclude-prompt t - "When not nil the prompt is not included by `vterm-copy-mode-done'." + "When not-nil, the prompt is not included by `vterm-copy-mode-done'." :type 'boolean :group 'vterm) (defcustom vterm-use-vterm-prompt-detection-method t - "Should we use the vterm prompt tracker or the search from `term-prompt-regexp'?" + "When not-nil, the prompt is detected through the shell. + +Vterm needs to know where the shell prompt is to enable all the +available features. There are two supported ways to do this. +First, the shell can inform vterm on the location of the prompt. +This requires shell-side configuration: the escape code 51;A is +used to set the current directory and prompt location. This +detection method is the most-reliable. To use it, you have +to change your shell prompt to print 51;A. + +The second method is using a regular expression. This method does +not require any shell-side configuration. See +`term-prompt-regexp', for more information." :type 'boolean :group 'vterm) |
