Score:0

^[[A in terminal when navigating to past commands

cn flag

When I run a command like "yarn build" in a terminal window and then use the up arrow after the command finishes, there is this text visible:

^[[A

What I expect to happen is to see yarn build again. However, when I just press enter on the the text, it executes yarn just fine.

So what is that text, why I am seeing it, and is there some way to "fix" it.

hr flag
Have you changed from the default bash shell? What are the outputs of `echo "$0"` and `echo "$SHELL"`?
terdon avatar
cn flag
Is this specific to that one command, or does it happen with other/all commands as well?
cn flag
The output of `echo "$0"` is bash (/bin/bash). It is not happening on all commands. Yarn is where I usually notice it, so it may be specific to yarn.
Jeff Schaller avatar
ru flag
Similar github issue, pointing to a possible `node` change: https://github.com/yarnpkg/berry/issues/763
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.