emacs-libvterm
emacs-libvterm copied to clipboard
vterm only redrawing on input
Since the last software update I did, vterm only redraws output when it receives more input, or when I perform something that causes Emacs to redraw buffers (e.g. changing the window layout).
Sometimes it does occasional updates on its own, but I am not sure what triggers them.
I've been poking around a bit and haven't found an obvious problem. Curiously, it seems that nothing changed in vterm itself between the set of packages where everything worked and the set where this occurs. I decided to open an issue here anyways in case somebody else has run into this and found a way to resolve it.
In the meantime, I'll attempt to bisect what is going on here.
Note: I use Emacs with native compilation.
I experience the same symptoms with Emacs 28.1. Did you find something by bisecting, @tazjin? Interestingly enough, I am on NixOS as well.
Nope, never found the source of the issue and at some point after a subsequent update it just stopped v0v
For what it's worth, I'm on nixos-unstable
Ah, thanks for the quick response and good to know that there's a chance that it might be fixed in nixos-22.05 (following 21.11 here)
I observe something very similar, that might be related to this issue:
I use the Haskell REPL ghci, and each time I press enter, I should see the output of what I just entered, and the prompt of ghci>.
Each time, I just see the output, but not the prompt. The prompt appears again when I, like you described, input the up arrow direction (normal input doesn't work), or when I resize the emacs window for example.
I'm using archlinux with its latest emacs, ghc packages, with the latest libvterm
Like @titibandit, I have a problem with Haskell's GHCi and elm repl not showing prompt or echoing input.
Here is the code that mimics GHCi's line read code, accepting input from the user and outputting it as is. It doesn't show prompt and echo input from the user until a line feed is performed.
import qualified System.Console.Haskeline as H
action :: IO ()
action = do
H.runInputT H.defaultSettings $ do
maybeLine <- H.getInputLine "TEST >>> "
case maybeLine of
Just line -> H.outputStrLn line
Nothing -> H.outputStrLn "No Input"
This is the content of ~/.emacs.d/init.el
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(setq exec-path (append exec-path '("/opt/homebrew/bin"))) ; for cmake
(use-package vterm :ensure t)
OS: macOS Monterey(12.4) CPU: Apple M1 emacs: GNU Emacs 28.1
I tried using old commits of this repository, and I can't fix the problem this way. It might have something to do with emacs itself.
I'm experiencing the same issue, also on arch with the latest emacs/libvterm, but I'm also using doom
Does #617 fix this? #598 has been fixed . if it is not fixed, Could you tell me the step to reproduce your problem with a screenshot
I've updated vterm today, and the issue is fixed for me. I don't know if it's that pull request you mentioned but it's definitely fixed for me. Thanks!
Same - I can now use ghci inside a vterm :+1: