| Age | Commit message (Collapse) | Author |
|
|
|
The function actually returns `ptrdiff_t` (and the callers already
expected that type).
|
|
|
|
The word “highbright” was spelled as “hightbright” in a few places.
|
|
|
|
|
|
|
|
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
|
|
|
|
This will fall back to Tramp's shell if the login shell cannot
be determined.
|
|
Lets the user specify a shell for all Tramp methods.
|
|
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.
|
|
- `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
|
|
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.
|
|
|
|
- When checking for vterm-mode, also support modes derived from vterm
|
|
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.
|
|
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>
|
|
|
|
|
|
|
|
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
|
|
* vterm.el (vterm-color-bright-*, vterm-color-palette): New faces.
(vterm--get-color): Use new bright faces.
* README.md: Mention new faces.
|
|
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.
|
|
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)))))
|
|
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`.
|
|
when vterm-copy-mode-remove-fake-newlines is not nil.
See #497 .
|
|
|
|
libvterm defaults to generate a dynamic library, however the emacs
module prefers a static one.
Fix #333
|
|
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.
|
|
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."
|
|
|
|
|
|
|
|
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.
|
|
from vterm--self-insert
|
|
|
|
|
|
|
|
Fix type for vterm-clear-scrollbark-when-clearing
|
|
It should be boolean
|
|
|
|
|
|
delete all unused command like vterm-send-C-[a-z] vterm-send-M-[a-z].
|
|
and vterm-send-{up/down/left/right/prior/next/meta-dot/meta-comma/ctrl-slash}.
and would be removed in v0.1
|
|
reimplement OSC 52 with VTermSelectionCallbacks from libvterm v0.2
|
|
|
|
and use the commitid of tag v0.2
|
|
|
|
|