Skip to content

Add --no-alternate-screen (-X) flag#432

Open
ev1lm0nk3y wants to merge 2 commits into
walles:masterfrom
ev1lm0nk3y:feat/no-alternate-screen
Open

Add --no-alternate-screen (-X) flag#432
ev1lm0nk3y wants to merge 2 commits into
walles:masterfrom
ev1lm0nk3y:feat/no-alternate-screen

Conversation

@ev1lm0nk3y

Copy link
Copy Markdown
Contributor

I was experiencing issues when moor was being used when interactive prompts were required by external cli tools.

  • Implement --no-alternate-screen (alias -X) to disable switching to the alternate screen buffer.
  • Refactor twin library to support screen options.
  • Update public embedding API with NoAlternateScreen option.

This is a split from #417

@walles

walles commented Jun 1, 2026

Copy link
Copy Markdown
Owner

moor was being used when interactive prompts were required by external cli tools

Can you give an example of an external CLI tool that wants to control a pager?

@ev1lm0nk3y

ev1lm0nk3y commented Jun 2, 2026 via email

Copy link
Copy Markdown
Contributor Author

@walles

walles commented Jun 3, 2026

Copy link
Copy Markdown
Owner

How does git have problems with moor using the alternative screen?

I'm missing something here, I've been using moor as my git pager since 2013 and I've never had issues with that...

@ev1lm0nk3y

Copy link
Copy Markdown
Contributor Author

Ah, I misunderstood your question. While git is an external tool that outputs results to your screen, you wanted to know what tool used moor expecting input from a user during its execution.

I believe I was using the Linear or Notion CLI tool. It's been a few weeks at this point, but I seem to remember that I was asked to provide a token during its auth login flow but it depends on the pager to display results normally.

@walles

walles commented Jun 4, 2026

Copy link
Copy Markdown
Owner

But if moor was still capturing keypresses, wouldn't that break any tool regardless of altscreen or not?

If you had a followable concrete example that would be super!

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

Successfully merging this pull request may close these issues.

2 participants