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

Terminal input stops working in git commands that use pager, when run from xonsh #26150

Open
benwr opened this issue Mar 5, 2025 · 0 comments

Comments

@benwr
Copy link

benwr commented Mar 5, 2025

Summary

If I run any git command in the terminal that uses a pager (e.g. git log, git diff), all input to that terminal seems to be totally disconnected; it shows up at the bottom of the terminal pane, but doesn't do anything. This includes control sequences that should (e.g.) exit the pager or suspend it, so that terminal becomes unusable.

This only happens when I run those commands from xonsh (not from zsh), and it doesn't happen if I invoke a pager directly (e.g. less README).

This doesn't happen in iTerm2 or Terminal.app, so it's somehow due to the combination of xonsh, git, and zed.

I don't think I have any special xonsh or git configuration that should affect any of this, but if others can't repro I can try harder to share config details.

I'm using:

  • macOS 15.3.1
  • Xonsh 0.19.2
  • zed 0.176.2

Steps to trigger the problem:

  1. Run git log in a terminal pane, in a project with enough git commits to need a pager
  2. try doing anything else in that terminal window

Actual Behavior:

Nothing happens except that the keystrokes are printed at the bottom of the screen

Expected Behavior:

keystrokes are passed to the pager

Zed Version and System Specs

Zed: v0.176.2 (Zed)
OS: macOS 15.3.1
Memory: 128 GiB
Architecture: aarch64

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

No branches or pull requests

1 participant