332 points · by yomritoyj · 9y ago · 238 comments
Current Windows terminal options:
- ConEmu: mainly excellent but a little dated - eg, the active tab color is hard to distinguish but it can't be changed, apparently due to maintainer's insistence it works on Windows XP.
- Hyper: excellent but Ctrl C, Ctrl R etc broken in powershell.
Adding tabs to the Windows console makes more sense than have a third party create an entire console just to support tabs.
A fast, inbuilt, 2017-era terminal is.
- ConEmu has a UI that's a shotgun blast of shit.
- Hyper still fails at basic shortcuts.
- ConEmu plus other software still has a UI that's a shotgun blast of shit.
- Some person's half maintained fork of putty is some person's half maintained fork of putty and we already have Windows openssh for SSH purposes.
- A proprietary app you need to pay for is a proprietary app you need to pay for.
- tmux is not a tabbed terminal.
- Something that uses cygwin is something using cygwin.
The post is requesting a clean tabbed terminal, included in Windows, and maintained full time by Microsoft employees (whether Open Source or proprietary).
Edit: removed 'fully featured' as someone below thinks that means I want all the bullshit the other terminals add, rather than tabs, working escape sequences, and other terminal features.
You'd either get a Microsoft Word equivalent of a console window in that case, since everyone has a different set of features they consider essential, or the Notepad equivalent (more likely). A tool's value doesn't necessarily increase with more features and features are never cheap (in Windows, at least, where there are documentation, translation, configuration, group policy, and other concerns).
Tabbed console windows exist as 3rd-party applications already, seemingly with minor problems for one user or another, but I'd argue those problems are easier to rectify than for MS to develop yet another alternative that people grumble about even more because it doesn't contain their own personal pet feature.
What I mean when I write 'clean and fully featured' is: a console, tabs, a nice scroll buffer, working escape sequences, suppressing the bell. That's about it.
This is 1000x less features than ConEmu - I don't care about a new exciting way to set terminal variables, or integration with a file manager nobody uses, or support for a bitmap font format, or per-app antialiasing settings. Or various silly extras the other terminals add - I don't want a new way to do Unix on Windows, I don't want a new SSH client this isn't as good as openssh, I don't want a new windowing system.
I'm suggesting EXACTLY something like notepad.
Do 1000x less things, and do the remainder well.
> I'd argue those problems are easier to rectify than for MS to develop yet another alternative
Just add tabs to the console app as suggested. Or use whatever Edge uses for window chrome and shove the console app in there rather than html.
I wonder if an MS port/fork/patch-set contribution to putty might not be the best way to a great windows console host. At least until there's a native port of libvt.
Putty gets a lot of the console handling right - while win64/32 openssh is pretty outdated and lagging as a ssh client - I find it's preferable to run a recent full openssh under wsl to using openssh on Windows over putty.
As for console for Windows - I'm currently using conemu - considering moving to putty, but haven't quite figured out if it makes sense as a local powershell (and ipython) host...
ConEmu likes to do this cute thing where it stops accepting key presses. And with the all the options it has, "starting a new terminal in the directory of the previous" is nowhere to be found.
But still, it's probably the best on Windows if you want tabs.
- Minimal contrast in active tabs - can't be fixed due to Windows XP support.
- Flashes it's hidden console proxy on screen continually
- Settings menu with around 5000 options and no sense of heirarchy - something that's rare is just as prominent as something that's common
- Giant colorful icons and wasted space in the title bar. I can't throw my mouse to the top and pick a tab when it's maximised.
- Freaks out when your console is too large
- Does a bunch of things better done elsewhere: my profile bash/powershell profile sets environment variables, I don't need my terminal to do this.
We're working hard on that architecture stuff now, because we want tabs just as bad as the community.
If this is more than could be enumerated in an HN comment, I'd love to have a blog post about it. This stuff is fascinating.
And, no, simply rewriting the Console is not an option: Entire businesses' core systems depend on the Console, its specific behaviors, and even its bugs.
If we break existing behaviors we get to hear about who we've broken very, VERY quickly ;)
It's so promising though, I paid for it.
I pretty much use it mostly for ssh and have never noticed any lag. There are one or two oddities, but I can live with them. It's miles better than plain old PuTTY.
If I'm doing RDP I use RoyalTS, another thing I paid for because it does RDP management so well:
YES ... one day ;)
We're keen to figure out a decent tab story for the console, and the feature ask is on our backlog, but we're currently fully booked completing some important internal re-factoring, after which we'll be able to return to working on important asks like this.
FWIW, we're currently giving the Windows Console its biggest overhaul in > 30 years!! We're re-factoring and modernizing many of the Console's core internals.
We'll be writing-up the why's and wherefores of what we're up to in a couple of months.
Stay tuned on our blog (https://blogs.msdn.microsoft.com/commandline) and follow me on Twitter (https://twitter.com/richturn_ms) for news, udpates, and info.
- Something called 'git-for-windows' which isn't actually git for Windows https://git-scm.com/download/win but unremarkable things like shell additions which give you git status in the prompt, and a not-particularly-good GUI.
- Clink (which is for cmd.exe).
I.e., this doesn't in any way address the limitations mentioned in the post you're replying to.
It has the added benefit of you being able to pick the terminal to spin up, and whether you want Administrator mode or not, on every new tab, so you can be working in a bash tab and pop a new Admin cmd tab to update packages using your Windows manager.
I personally don't want a terminal with built-in tabs or windows since I use tmux for that. On my Mac I use iTerm2 where tabs/windowing is integrated with tmux. Try it and see if you like it! :)
I'm yet to try it out, but I wonder if the problems with editing files in the linux filesystem[0] is going to be an issue with this?
[0]: https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-n...
That was the main tripping point for me last time I tried out the WSL workflow. Mainly just because a bunch of files in our repo were apparently named in an ntfs unfriendly manner, so when I tried to merge etc. the repo would get corrupted.
Don't assume that just because the post hasn't been updated in a couple of months that it's somehow been magically "fixed" - it hasn't. In fact, its actually a really tricky problem to solve, and it'll take some time, a great deal of care, and some very well thought-out engineering before we arrive at a fix!
If/when we do fix the underlying issues we'll update this post and publish a new post announcing that the coast is clear ... until then, DO NOT CREATE/MODIFY THE LINUX FILESYSTEM USING WINDOWS TOOLS.
Thanks.
I remember the NT POSIX subsystem, which was a bit of a joke. It was badly limited and just seemed to be a box ticking exercise to get past some government requirements (disclaimer: I don't actually know if that's true). Whatever the reason, we ended up having to port our POSIX software to NT because customers insisted it was POSIX complient. I did resent MS for the mess we got into.
I do believe MS has changed. They don't seem to be the conniving organisation they once were, but what does WSL bring to Windows?
Perhaps, they are just accepting that there is something inevitable about all that Linux software that is available out there, and Linux developers could now be supporting Windows with no actual effort. After all Apple have saved themselves a load of effort by using Netbsd. However, something makes me wary. Could we be looking at an attempt to replace the Linux kernal on the servers of the world?
Apple has been losing their darling reputation among developers, and I think MS sees an opportunity to bring a lot of people back over who might otherwise try to make a go of Linux. If they can offer a plausible story for developing and deploying applications from windows I think it would drive more business in the cloud and enterprise areas; at the same time having more developers around on the platform will continue to ensure that they have the software to keep consumers from migrating to iOS/Android/ChromeOS type devices.
What I don't understand is why Canonical thought that shrinking their user base would be good for their business.
As developers, we're all enthusiasts of the WSL and how we don't need to dual boot, run VMs etc. any more. But in the process, we may end up giving less love to our once beloved DEs. This in turn creates a negative feedback for Linux desktop adoption. Also, less bare-metal installs means less bugs discovered and ironed out in the kernel too, less incentives for developers to release drivers, etc. so in the long run it's going to hurt Linux much more.
The only user base that shrinks is the Linux Kernel user base; Ubuntu and Linux are two separate concepts, and WSL demonstrates that they are in fact fully separable.
I don't think this business model will last much longer, though ;-)
As a general rule, businesses will play nice when they have to (because of competition, public opinion, or government regulation), and they'll be ruthless where they can get away with it (due to monopoly status, high barriers of entry, poor regulation, etc.).
If you believe anything about a company, believe that. No company is fundamentally good or evil.
Now... corporations do have internal cultural that biases their ethical decision-making (positively or negatively) and various factors (inertia, founder effect) which slow down the rate at which they adapt their ethics to a new set of market/regulatory conditions. So perhaps you can trust/predict a particular company for the short-term.
One reason why it was so easy for Linux developers to switch to OSX was that they had a mostly-compatible shell environment.
That's far too optimistic.
I think this ex-Microsoft employee might disagree with you. https://www.youtube.com/watch?v=wPFbAqICUJo
1. In the Terms & Conditions, Microsoft claims they get your IMEI number from mobile connect devices as part of their telemetry and then go on to say it's not PII (Personally Identifiable). Jerry explains how this is not true and explains how Microsoft through corporate partnerships can eventually link your IMEI data back to logs previously collected.
2. Jerry explains that there are two levels in the new Windows Creator program: A basic level and another, I forget what he called it, more verbose level. Jerry explains that 90% of the telementry data you might think is in the more verbose level is collected at the basic level. Kind of a moot point.
3. If you have turned off telemetry collecting features such as cortana and edge, by upgrading to Windows10 creator, these features are re-enabled and Microsoft says this is a bug but Jerry claims it's intentional.
These were the salient points I recall from the video. If you get a chance to view, I suggest giving it a watch. It's interesting.
They're trying to prevent Windows from becoming the COBOL of operating systems.
MS already has a Windows subsystem for Linux (they are using it in the MSSQL Linux port).
Windows 10 is the last version of Windows that Microsoft is making. It will be continuously updated instead of new versions being released.
I've been using WSL for the last year now on my Surface Pro 4, and it has been nothing short of fantastic. This bridges a HUGE gap that made the MacBook attractive.
Windows didn't have a terminal emulator until recently anyway, as Windows console applications use the console APIs to change cursor position, color, etc. instead of having that API as part of the text stream that's output by applications.
Windows has always been such a pain in the ass with regard to symlinks (my revision control workflow for big projects spread across multiple repos always includes symlinks). So, this is cool.
I have been mostly a Linux user for quite some time - at least on my own computer, clients always have Windows. But this year I bought a Surface Pro as a secondary device.
I first evaluated WSL and really liked it, but I switched to Hyper+Git Bash because networking in node.js was not working properly, and because I could not start Windows programs from the command line.
Now, if both problems are really fixed now, I guess I will switch back to WSL, and maybe uninstall Hyper+Git Bash later (given that I do not find any other show stoppers)...
And since USB ports aren't mapped into WSL, I have to use a Windows program to talk to them.
Besides this hiccup, everything else seems to work great.
The not searching the current directory is well known in the Unix and Linux world; and to be fair so too is the idea that if the filename of one's executable Perl script ends in .pl, or the filename of one's executable shell script ends in .sh, then the .pl and the .sh have to be explicit in the command name that one types. The idea that one can run notepad.exe with just notepad comes very much from the DOS and Windows world, here.
The Windows NT POSIX Subsystem actually provided a whole bunch of shims so that one could run various Win32 housekeeping utilities from a POSIX shell without explicitly adding ".exe", and a Korn shell adjustment to allow case-insensitive searches for Win32 commands.
Wondering why such a disclaimer? Ubuntu apt upgrades are reliable. Or is it related to WSL? Anyway good job WSL team.
The 14.04 version which is supported until 2019 still has the bug that it won't clear out old kernels after upgrading them. So if you don't look into your /boot partition now and then it fills up and breaks your installation.
Yeah, I see your point.
That has never ever worked for me until the 7 -> 10 upgrade: 95 -> 98, 98 -> 2k, 2k -> XP and XP -> 7 all failed miserably and required installing from scratch.
And even 7 -> 10 failed without any helpful information= the first few times I tried it (unlike OSX where I've been upgrading and migrating the same system for more than 10 years across multiple machines and versions).
Are there any plans to support GNU Readline shortcuts such as history searching with Ctrl-R directly in the Windows Console?
I'm mostly using WSL to run the PostgreSQL CLI with the standard keyboard behavior. It would be nice to be able to do that without having to install WSL.
One can of course write command interpreters that have their own editing systems, rather than use the one provided by the console. JP Software has done this for many years.
* https://jpsoft.com/help/index.htm?cmdhist.htm
But tofflos is asking about improving the one that is in the console.
rtt min/avg/max/mdev = 0.098/0.109/0.131/0.012 ms
As an emacs user, this single issue has been the show-stopper that prevented me from investing in bash on windows, even though I would like to.
[1] https://superuser.com/questions/1088250/windows-10-linux-bas...
Can anyone verify if this means you can run the Docker for Windows client (the docker and docker-compose executables, not the engine) from within WSL, including from shell scripts?
If so, I can't wait to try it out, since that's about the last thing preventing me from using my usual Linux/MacOS dev workflow in Windows!
Unfortunately I'm running an Enterprise version of Windows, and the upgrade tool doesn't support Enterprise yet, so I'll probably have to wait for it to come through Windows Update.
It allows you to run a command in the Windows prompt to 'link' a Linux command to a Windows one, allowing you to run the Windows command to run the Linux command (if that makes sense; the GIF in the Readme is probably better at explaining).
It's written in Bash and Batch so doesn't require external dependencies.
C:\> doskey ls=bash.exe -c "ls $*"
C:\> ls /
bin cache dev home lib media opt root sbin srv tmp var
boot data etc init lib64 mnt proc run snap sys usrNow that there is 24-bit color, is there actually a reasonable way to change the colorscheme, or are you still stuck with the same UI?
As far as I can tell, this is the first major overhaul of CMD. Full stop. We've been waiting.
Bash on Windows has existed for decades now, through Cygwin. https://cygwin.com/cgi-bin2/package-cat.cgi?file=x86_64%2Fba...
Trying to reduce the entire GNU/Linux ecosystem to "Bash" is insulting to the community you are trying to appeal to:
Linux is an immensely large and complex project, which has millions of lines of code. The GNU part of GNU/Linux has a couple of more millions of lines of code as well. Bash is small in comparison.
Really the awkwardness of the naming is more of a testament to the power of scripting on Unix-like OSs (eg how scripting is a first class citizen and how most of the ecosystem is modelled around CLI, and thus scripting, support) more than it is an insult.
As for cygwin, that was simply terrible. MinGW was better but WSL is already better than both and it's still a long way from feature parity.
Of course some MS haters will always find a way to fault this, and i can sympathise with that point too because I've been burnt my MS too and thus, as much as i found WSL to be a much needed addition to Windows, I'm still going to stick with Linux as my primary OS. However personal biases of Windows aside, even i have to admit that WSL is a pretty good feature.
Cygwin enabled me to stick with Windows since 2003 or so, and have the same environment on Windows, Linux and OS X. The command line is where I spend most of my time, and apart from Firefox every daily app I use on Windows is a cygwin app, from tmux through to Emacs.
I think Cygwin was less convenient than an ABI such as WSL, but by no means "terrible". Cygwin was initially released around 1995, it served a valuable purpose before the first VM products came along.
Bash is the default shell. It's also the generic command you run to launch the WSL environment.
While the multiple names for the same subsystem are a little nebulous, Bash is far from being as confusing or misleading as you're attempting to portray.
Also, editing your original snide grammar dismissal due to the downvotes it received isn't appreciated. That's deceptive at best. Either own your bad behavior or apologize for it, but don't edit it and pretend like you were being rational.
Take WSL for example, I'm sure their motives are just to encourage people away from Linux and OSX for sysadmin and dev workstations. I can see that strategy working for many people too. But at least with WSL, if they do decide to cripple it once they have the customer base then it's pretty trivial for users to switch away again (which was less doable with many of the other tech they've dominated the market place with).
So while the trolling remarks of the OP are clearly unconstructive, i can at least emphasise with why he feels the need to speak out against MS. He just did so in a pretty lousy way.
Now that they're embracing the typical Linux userland, I can't help but ponder if they'll try shifting to the extend+extinguish part later on. I guess old habits die hard, especially when you got burnt multiple times already, although I'm not cynical enough to think this would be all planned beforehand but more like at some point some exec would notice this as a strategic opportunity to seize.
That said they're certainly winning some Linux users back, and if anything, this may even help in getting some Windows people used to Unix and Bash, reducing the gap for them to try their hand at some Linux distro. All in all, cross-pollination is good both ways.
https://en.wikipedia.org/wiki/Standardization_of_Office_Open...
I also think their current strategy could be the one you describe. We're at the Embrace phase. It's not sure that Extend will follow but I wonder what it could look like. Maybe it will be something convenient you can do in Linux only if you're running it inside WSL. Given how Linux is used it should be something server side, Internet facing (no Active Directory, Exchange, SQL Server, those are Windows markets anyway). A bonus would be some compatibility tool to do that on native Linux too. If enough software is written to run for Linux+WSL and it gets deployed in production, then the Estinguish phase will be ready to kick in: deprecate the compatibility tool and hijack all the Linux market to Windows. The timescale for playing out these strategies is at least 10 years, so let's talk about it when approaching 2030.
If Microsoft is really thinking along those lines, a way it could fail is if Linux expands to other markets. That would make it hard to Extend to most of the use cases.
However what WSL is doing it to make those MacOS users that deploy to Linux consider moving back to Windows because there is a Linux subsystem there too. Actually, a real Linux instead of a look alike.
By the way: why did they named it Windows Subsystem for Linux instead of Linux Subsystem for Windows? It's Linux running inside Windows, not the other way around.
I'm also not convinced they've changed at all when I see what they've done to things like skype, where they have somewhat of a monopoly (thanks to office).
Whilst I really appreciate some of the things Microsoft is open sourcing I also find their current telemetry and privacy stance troubling.
For several years it was the best browser available. Invented a lot of things, including DOM and XMLHttpRequest.
> ActiveX / Silverlight and other MS web lockins
Everybody did that. Have you forgot internet with A/V streaming locked to RealNetworks, and vector graphics and animation locked to Macromedia?
You can agree or disagree, but the comment was technical in nature, not trolling.
People do not use "Bash on Windows" just for the sake of using Bash (the shell), they use it to access GNU/Linux software through the WSL ABI.
I will note, that Microsoft, when referring to their WSL component, never refers to it as Bash - and always "Bash/WSL" - though it's dubious as to whether that's even meaningful (unless they are trying to say once you start WSL you can run bash. But you can also run fish. Or any other shell.