First time here? Check out the FAQ!
1

Whats the best way to set zsh default terminal on a mac?

  • retag add tags

On my mac its default, zsh, but the default settings for OS Commands is bash. I try to change in the settings zsh -i -l which is mostly fine, except for it displays '~ % ?[?2004h' on every line and its a minor annoyance, how would I get rid of this but only inside of wing ide?

jamiecropley's avatar
11
jamiecropley
asked 2025-03-13 22:03:58 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

Changing the command from 'bash' to 'zsh' is the way to change which shell is used, but I'm also not finding a way to get rid of those control characters. I've tried -f and -no-rcs, setting TERM=dumb and NO_COLOR=1 in the environment, and "unsetopt BRACKETED_PASTE" which gpt-4o suggested but seems to be a hallucination at some level (or perhaps just doesn't exist in my version of zsh).

The root problem here is really that OS Commands in Wing is a dumb terminal and doesn't implement terminal control characters. We do hope to fix that but I'm not sure when. It's one of those things that has been on our list a long time but hasn't gotten to the top.

If you find a solution, please post another answer here. I will also, if I find other ideas to try...

Wingware Support's avatar
4.2k
Wingware Support
answered 2025-03-14 13:22:27 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

I figured out just unticking 'Use Pseudo-TTY' and I also 'zsh -i -l' in the command line.

jamiecropley's avatar
11
jamiecropley
answered 2025-03-14 16:33:56 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer