zorglubb

zorglubb OP

I have been testing out all sorts of terminal applications on Windows like CmEMU, GitBash, CMDer and many others and frankly, working inside it with Elixir leaves a lot to be desired from working in Terminal on MacOS and Linux.

Now Microsoft has release a pretty cool Windows Terminal, and working in iex is exactly the same. No tab complete, no formatting to speak of, no colors. This is such a big feature of working in IEX.

Is there a push or interest in making the Windows Terminal more useful, or is there some switch or configuration that I am missing?

First 10 of 17 Posts Switch mode

NobbZ

NobbZ

The various Bashes for Windows should work. At least color.

Another thing you can try is to use the --werl switch. It will open a separate window.

orion

orion

Tab complete and colors work for me on the new windows terminal. I just installed it.
Tab and colors also work with the old wsl/ubuntu/cmd terminal and hyper.

Hyper is heavy on the memory but here is the link in case you haven’t seen it. https://hyper.is

Edit: Colors and tab works with WSL but not with native elixir with command prompt/cmd for me.

NobbZ

NobbZ

Wow… A stripped down chrome(ium) just to display some textual information… Yes, that one needs a lot of memory for sure…

I’m pretty sure there are a lot of alternatives that’d work as well as hyper and use a lot less memory…

Arpple

Arpple

I used Hyper.js + git bash + elixir installed on windows at first and it can’t use tab to auto complete in iex
after I switch to Window Terminal + WSL (ubuntu) + elixir installed inside WSL everything works fine, not seeing any issue now.

dimitarvp

dimitarvp

In CMD you can just do this:

iex.bat --werl -S mix

It opens a new window which has tab completion at least. Colors though, no.

zorglubb

zorglubb OP

This does not TAB complete

zorglubb

zorglubb OP

Did you do anything? Did you run IEX through a bash linux shell ? I wasn’t clear on this, but this should work on windows command line interfaces like new terminal in cmd and powershell.
That it works under Linux subsystem is not what I am after

dimitarvp

dimitarvp

For me it has tab completion working though. Strange.

NobbZ

NobbZ

CMD and Powershell work fundamentally different from the emulators or TTYs you’d use under Linux. That’s why the --werl workaround has been created by the Erlang folks. If it doesn’t work for you, then something is different with your setup from that of everyone else.

orion

orion

I’m not able to get colors and tabbing working outside of WSL except when the command iex.bat --werl is ran from command prompt/cmd. Only tabs work for me with iex.bat --werl not colors.

Where Next? Top

Trending in Discussions Top

AstonJ
As the title says, please share what you’ve been up to with Elixir. Whether that’s been learning it, looking into it, making stuff with i...
2977 91561 914
New
byu
@chrismccord : I just saw the Extract AGENTS.md from Phoenix.new into phx.new generator commit to the phoenix project. My initial shotgu...
New
arcanemachine
I was working on an Ecto migration and I needed a timestamp. So, for the nth time, I looked up the different data types for timestamps, a...
New
AstonJ
Just a general thread to post chat/news/info relating to AI/ML stuff that may be relevant for Nx now or in the future. Got anything to sh...
New
type1fool
I just stumbled on a newly redesigned elixir-lang.org. :tada: It looks like @Software_Mansion did the work, and I think it is generally a...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New
alexslade
Fly’s CEO posted this recently - Turn And Face The Strange · The Fly Blog It says that Fly is going all-in on sprites, which is a worry ...
New

Other Trending Topics Top

JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
ausimian
Emily is an Elixir library that runs Nx computations on Apple’s MLX. Install it as the default Nx backend and Nx, defn, Axon, Nx.Serving,...
New
mudasobwa
While I am working on the Language Agnostic Code Audit SaaS, which uses MetaAST (spoiler: I am expecting it to be in a good shape for ann...
New

We're in Beta

About us Mission Statement