aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2026-04-05Fix backtrack on doubleclick in vtermHEADmasterLin Sun
2025-11-19Fix return type of `string_bytes`Martin Geisler
The function actually returns `ptrdiff_t` (and the callers already expected that type).
2025-11-11Improve Markdown and fix typos in READMEMartin Geisler
2025-11-11Fix typo in `vterm-set-bold-highbright` variable nameMartin Geisler
The word “highbright” was spelled as “hightbright” in a few places.
2025-11-11Fix typos and grammar in commentsMartin Geisler
2025-09-29Fixes segfault when clicking error in compilation-shell-minor-modeBrian D. Caruso
2025-09-29Fix spellingJimmy Yuen Ho Wong
2025-01-13README: link the issue of running on WindowsKonstantin K
It seems there is demand for making this work on Windows, so would be nice if the text that says it doesn't work would be linked to the issue that contains the research. This will allow interested people *(if such appear)* to avoid researching everything from scratch, but rather basing their work on the information already done by others. This came up on SE: https://emacs.stackexchange.com/questions/82896/error-use-package-vterm-catch-searching-for-program-no-such-file-or-direct/82909#82909
2024-12-17Add README entry for vterm-tramp-shellsFlorian Rommel
2024-12-17Try running the login shell by default for "ssh" and "scp" methodsFlorian Rommel
This will fall back to Tramp's shell if the login shell cannot be determined.
2024-12-17Add wildcard for vterm-tramp-shellsFlorian Rommel
Lets the user specify a shell for all Tramp methods.
2024-12-17Allow using the default login shell for remote connectionsFlorian Rommel
Lets the user specify 'login-shell as a SHELL in `vterm-tramp-shells', which leads to vterm starting with the remote location's login shell.
2024-12-12Update `vterm_printf()` and `clear` in README.mdJames Cherti
- `vterm_printf()`: Fix the ShellCheck warning SC2235: 'Use { ..; } instead of (..) to avoid subshell overhead.' https://www.shellcheck.net/wiki/SC2235 - Replace `clear` with a POSIX-compliant function
2024-11-18Fixes #731: Replace the default truncation character ($) with a spaceJames Cherti
Set the truncation slot for 'buffer-display-table' to the ASCII code for a space character (32) to make the vterm buffer display a space instead of the default truncation character ($) when a line is truncated.
2024-11-18Add *.elc to .gitignoreJames Cherti
2024-08-24Support modes derived from vtermPeter Breton
- When checking for vterm-mode, also support modes derived from vterm
2024-07-05don't garble partial multi-byte character after control sequenceYubao Liu
When use [lf](https://github.com/gokcehan/lf) to list files, emacs-libvterm may read partial multi-byte character, for example: $ echo -n '招聘' | hexdump -C 00000000 e6 8b 9b e8 81 98 ; get "招", control sequence and partial character (vterm--filter process "\xE6\x8B\x9B\e[14;111H\xE8") ; now full "聘" (vterm--filter process "\x81\x98") This will send "\xE8" to libvterm which is not a full character.
2024-05-19Support overriding SB_MAX at compile-timeJacob Vallejo
This allows the user to select the scrollback buffer size via compiler preprocessor defines (instead of having to edit the source file) and falls back to the statically configured SB_MAX if the is no -DSB_MAX=$VALUE given. Signed-off-by: Jacob Vallejo <jake@jahkeup.com>
2024-03-25Ensures the starting col is the same as later calculatedMike Brumlow
2024-03-18Fix typo: postion -> positionXiyue Deng
2024-01-02add example to use another font for vterm buffernohzafk
2024-01-02Differentiate foreground and background colorsIllia Ostapyshyn
Allow using different background and foreground colors for same ANSI index, analogously to how term-mode does it. Remove magical indices for underlined cells with default foreground and inverse-video cells with default background. Instead, pass relevant info to lisp function to handle these cases at higher level. * elisp.c, elisp.h (Fapply): New binding. (vterm_get_color): Add new argument for optional attributes. * vterm-module.c (cell_rgb_color): Pass relevant attributes to vterm_get_color. * vterm.el (vterm--get-color): Use foreground or background color of the face depending on received attributes. * README.md: Update documentation
2024-01-02Add separate faces for bright ANSI colorsIllia Ostapyshyn
* vterm.el (vterm-color-bright-*, vterm-color-palette): New faces. (vterm--get-color): Use new bright faces. * README.md: Mention new faces.
2023-04-17Don't allow moving cursor below the last prompt via mouseJakub Kadlcik
Without this patch, I am able to click somewhere below the last prompt line and move the cursor there. I don't think this was an intended feature, it feels more like a weird quirk. We don't have any function telling us the point or line number of the last prompt, and it doesn't seem to be easy to implement, so I needed to workaround this.
2023-04-17Allow to find beginning and end of line from a specific pointJakub Kadlcik
I didn't find an easy way to determine whether the cursor is in the last prompt line or what the prompt line number even is. And one cannot assume the prompt line is the last line of the buffer beacuse vterm is basically a rectangle filling the whole buffer. As a consequence `(line-number-at-pos (point-max))` _doesn't work_ because `(point-max)` _doesn't work_. With this patch, it is possible to find the prompt line using: (line-number-at-pos (vterm--get-beginning-of-line (vterm--get-cursor-point))))) And in case the command in prompt is long and wraps into multiple lines, its end can be found using: (line-number-at-pos (vterm--get-end-of-line (vterm--get-cursor-point)))))
2023-02-17Fix vterm--remove-fake-newlines when in an empty bufferDamien Cassou
When the buffer is empty, (get-text-property (1- (point)) 'vterm-line-wrap) throws an error. This situation happens when the empty string is passed as argument to `vterm--filter-buffer-substring`.
2023-01-30Remove fake newlines in copy modejixiuf
when vterm-copy-mode-remove-fake-newlines is not nil. See #497 .
2023-01-30init is_invalidated in Fvterm_newjixiuf
2023-01-30add LDFLAGS to statically link libvtermAnbang Wen
libvterm defaults to generate a dynamic library, however the emacs module prefers a static one. Fix #333
2023-01-30Use same shell as TRAMP on remotes.Aleksei Fedotov
If emacs-vterm is started on a remote, use the same shell as TRAMP. That will guarantee that the shell exists on the remote. A shell could be chosen using `vterm-tramp-shells', but it tied to a specific TRAMP method. However, the same method (ssh) could be used to connected to different remotes, each with different default shell. So, we could use TRAMP to get the shell on per-remote basis.
2023-01-30config vterm-environment in dir_localsman.lu
The environment of each project may be different, and "dir_locals.el" provides an excellent way to configure each project separately. This patch enables config project environment by using "vterm-environment."
2023-01-30Enable selection for commands in copy-modeInc0n
2022-11-18Fix #643Gabriele Bozzola
2022-11-17Support `sb_clear` callback if presentRussell McClellan
2022-11-17Tidy up README and zsh shell config filedoolio
Remove unnecessary semi-colon from vterm_prompt_end() function in zsh source code block. Apply consistent naming to source code blocks (e.g. elisp vs emacs-lisp vs emacs etc.) to avoid confusion. Remove superfluous whitespace before some source code block names. Apply consistent whitespace either side of source code blocks improving readability when editing. See #635.
2022-11-02Change a binding for S-prior back to scroll-down-commandSergei Zobov
from vterm--self-insert
2022-10-19Reflect human-friendly prompt change in README to configuration fileSuto, Masanori
2022-10-19Use `prompt_pwd` to format `/home/myuser/mydir` as `~/mydir`Suto, Masanori
2022-10-19fix #632 Meta/Alt not working in terminal/non-graphical modejixiuf
2022-08-31Merge pull request #627 from PuercoPop/patch-2jixiuf
Fix type for vterm-clear-scrollbark-when-clearing
2022-08-31Fix type for vterm-clear-scrollbark-when-clearingJavier Olaechea
It should be boolean
2022-08-30check libvterm version,make it compile with libvterm<0.2jixiuf
2022-08-30update readme about libvterm 0.2 is needed.jixiuf
2022-08-27Merge pull request #620 from jixiuf/prefer-vterm--self-insertjixiuf
delete all unused command like vterm-send-C-[a-z] vterm-send-M-[a-z].
2022-08-27make-obsolete for all vterm-send-C-[a-z] vterm-send-M-[a-z] etc.jixiuf
and vterm-send-{up/down/left/right/prior/next/meta-dot/meta-comma/ctrl-slash}. and would be removed in v0.1
2022-08-27Merge pull request #624 from jixiuf/osc52jixiuf
reimplement OSC 52 with VTermSelectionCallbacks from libvterm v0.2
2022-08-27reimplement OSC 52 with VTermSelectionCallbacks from libvterm v0.2jixiuf
2022-08-27use mirror https://github.com/Sbozzolo/libvterm-mirror.git v0.2jixiuf
and use the commitid of tag v0.2
2022-08-27fix document of vterm-enable-manipulate-selection-data-by-osc52jixiuf
2022-08-27fix compile warning on emacs 29jixiuf