Skip to content

Instantly share code, notes, and snippets.

@dotemacs
Created May 28, 2025 16:27
Show Gist options
  • Save dotemacs/0bbbcd2a200071fc6a4dee61b63f2282 to your computer and use it in GitHub Desktop.
Save dotemacs/0bbbcd2a200071fc6a4dee61b63f2282 to your computer and use it in GitHub Desktop.

Amp CLI, a bit overzealous?

When you run amp CLI in a "non standard" terminal, like the ones that are available in Emacs, like eat the terminal behaves strangely.

But if I run amp in eat it displays like so:

bash-5.2$ amp
Type \ followed by Enter to insert newlines, or use Shift+Enter in supported terminals.
Interrupt the agent with Ctrl+C, exit with Ctrl+D.

>


                                                                                                     ⬇ Updating Amp...
  o
  on
  one
  one
  one t
  one tw
  one two
                                                                                                     ⬇ Updating Amp...
                                                                                                   ✗ Amp update failed.



I've just typed in one two the text presented itself as the above.

But, if I run python3 interactive prompt, it'll behave as expected:

bash-5.2$ python3
Python 3.9.6 (default, Nov 11 2024, 03:15:39)
[Clang 16.0.0 (clang-1600.0.26.6)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 2; b = 3; a+b
5
>>>

For top & htop (which even has colours), both work fine. Loading retronews.py also works fine, the colours display as you'd expect, no issues.

Now, there is a mode for Claude code that wraps their CLI and uses the same terminal, no such issues.

Could it be that the way your CLI handles \ backslashes, where it "swallows them up" in order to continue on the next line, could be throwing spanner in the works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment