TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Typing inside of the default WSL terminal feels amazing (2018)

332 pointsby hnbreakover 5 years ago

28 comments

nickjjover 5 years ago
Author of the GitHub issue here. I was surprised to see this title, because I thought &quot;holy cow, finally someone else appreciates low input latency&quot; and then I realized it was my issue haha.<p>By the way, wsltty 3.x also has excellent input latency now too. I&#x27;ve been using it for quite a while now with terminal Vim in WSL and it&#x27;s about 90% as good as xterm on native Linux in terms of latency. wsltty also has no issues with tmux where as the MS terminal (both old and new) have severe issues with tmux.
评论 #21865130 未加载
评论 #21864795 未加载
评论 #21864709 未加载
评论 #21865108 未加载
评论 #21864661 未加载
评论 #21865429 未加载
amlutoover 5 years ago
The surprising thing here is that this is the <i>Ubuntu</i> terminal. Indeed, each keystroke goes through the input driver, to USER32, through the console code, to the terminal process in question. But then it goes through a virtual input device, across the VM boundary (which, on Windows is a VM exit plus an entry), through the Linux input driver, into dash (or whatever Ubuntu uses these days), and then all the way back out again, and <i>then</i> it gets rendered.<p>The fact that this whole dance is faster than notepad.exe suggests that Linux is doing pretty well, that MS’s hypervisor stack is performing well, and that the fancier MS frameworks are really quite slow.<p>(To be fair, the GNOME Wayland stack has recently been upgraded from awful to sort-of-decent latency-wise. It’s all too easy to design a system where latency wasn’t a primary consideration from day 1 and to have a very hard time improving latency after the fact.)
评论 #21863443 未加载
评论 #21863128 未加载
acdhaover 5 years ago
If anyone else is curious about measuring things like this, try the <a href="https:&#x2F;&#x2F;isitsnappy.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;isitsnappy.com&#x2F;</a> app on a modern phone.<p>It’s real nice to have some competition for macOS on this front — and especially when it moves out of terminals into related tools like editors (VSCode was close to Terminal.app the last time I measured while e.g. Atom was fully an order of magnitude worse). This is a frictional productivity cost which most people discount because it’s not as obvious.
skrebbelover 5 years ago
I just tried it and I&#x27;m blown away and confused: why is Windows Terminal faster in an ubuntu tab (WSL1, in my case) than in a cmd.exe &#x2F; powershell tab? I mean the exact same terminal window. Three tabs side by side. The ubuntu one is instantaneous and the others have short but noticeable lag.<p>This really surprises me.
dmitriidover 5 years ago
&gt; Of course this also means that we have trade offs. We don&#x27;t support fully international text like pretty much every other application will. RTL? No go zone right now. Surrogate pairs and emoji? We&#x27;re getting there but not there yet. Indic scripts? Nope.<p>You could say that a longer version of that answer is &quot;Text Rendering Hates You&quot;: <a href="https:&#x2F;&#x2F;gankra.github.io&#x2F;blah&#x2F;text-hates-you&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gankra.github.io&#x2F;blah&#x2F;text-hates-you&#x2F;</a>
评论 #21863982 未加载
mikekcharover 5 years ago
I&#x27;m curious how alacritty compares to it. The alacritty devs basically consider another terminal app rendering faster than them to be a bug on their part ;-) But it <i>does</i> sound like it would be a good challenge.
评论 #21863522 未加载
评论 #21863619 未加载
评论 #21862951 未加载
评论 #21867332 未加载
celeritasceleryover 5 years ago
&gt; Of course this also means that we have trade offs. We don&#x27;t support fully international text like pretty much every other application will. RTL? No go zone right now. Surrogate pairs and emoji? We&#x27;re getting there but not there yet. Indic scripts? Nope.<p>I find it interesting that Even though I don’t care about any of the above features, I still pay for them working with text in other applications. They are a constant tax on latency. It would be great if applications had a “ascii” mode and a “full” mode. You can take the performance or the features, but you can’t have both.
评论 #21864899 未加载
mrkeenover 5 years ago
WSL terminal is garbage. Here&#x27;s what irks me:<p>* I click on the icon and I get a terminal up (nevermind that it doesn&#x27;t accept focus on startup, so I start typing and the characters keep going to my task bar).<p>* I type in &quot;clear &amp;&amp; ls&quot; and hit enter.<p>* My line of text vanishes and I&#x27;m left with a completely black terminal. If I scroll up with the mouse-wheel I can see what I should have seen (the output of ls).<p>* I press up (to step backward through my command history) and all the text vanishes again.<p>The only workaround I have is to run something like tmux, which is somehow smart enough to render the text on-screen.
评论 #21866777 未加载
LeonMover 5 years ago
I&#x27;m a heavy WSL user, ever since I switched to Windows last year (after using MacOS for 6 years, and Linux before that).<p>I must agree that typing is pretty responsive compared to other windows applications, but still nothing near the native experience. I also run clear linux natively on my laptop, and typing in that terminal is just faster.
评论 #21863999 未加载
dsegoover 5 years ago
This is great to see. My experience with windows in general is that the typing latency is usually very bad compared to ubuntu. I can literally notice the lag. Plus some apps have these awful typing animations which make typing feel like wading through mud.
kgwxdover 5 years ago
I didn&#x27;t realize how bad input latency had gotten in general until recently when I needed to boot directly into a terminal. Sometimes I could swear the character appears on the screen before I even hit the key. It&#x27;s a weird feeling, but I would like more of it.
评论 #21868786 未加载
jankotekover 5 years ago
Long time ago we used RXVT because XTerm and ATerm were both too slow
评论 #21863488 未加载
TheFiend7over 5 years ago
Correct me if I&#x27;m wrong but I&#x27;ve been struggling to really nail down my development process of linux software on Windows, and based on my readings, a lot of articles state that applications perform far better on traditional hypervisors like VMWare and VirtualBox than WSL.<p>I mean it may be great that the WSL terminal feels good, but if my program takes 2-5x slower in WSL for testing, I&#x27;m still going to opt for a hypervisor.
swahover 5 years ago
Related <a href="https:&#x2F;&#x2F;danluu.com&#x2F;term-latency&#x2F;" rel="nofollow">https:&#x2F;&#x2F;danluu.com&#x2F;term-latency&#x2F;</a>
dangover 5 years ago
Discussed earlier this year: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19471857" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=19471857</a><p>I feel like there was a larger discussion too, but can&#x27;t find it. Anyone?
z3t4over 5 years ago
I really wish there was a way for the browser to blit pixels to the screen in the shortest amount of time possible. Like talking directly to the GFX hardware using a restricted API like the Canvas 2d context.
评论 #21865128 未加载
评论 #21867376 未加载
wirrbelover 5 years ago
How I wish that I could use the new terminal app on the windows 10 build that is installed on my work Laptop.
评论 #21863484 未加载
评论 #21863030 未加载
评论 #21862995 未加载
initselfover 5 years ago
Does Debian benefit from this work?
a2techover 5 years ago
TLDR (only slightly sarcastic); &#x27;Because we do things the hard way instead of buying into the 30 layers of abstraction hype&#x27;
baybal2over 5 years ago
Qt KTerm, and VTE both supported complex typographies close to 20 years ago and nevertheless achieve similar performance.<p>It is a testament just how much behind times MS was up until recently.
评论 #21880878 未加载
poizan42over 5 years ago
Can a mod add (2018) to the title?
评论 #21866937 未加载
big_chungusover 5 years ago
I often find myself using cmd (the old terminal prompt that is default WSL) on windows. It&#x27;s not perfect, but I found a patch to enable ANSI color support and it&#x27;s so much better latency-wise. I hope others work as well in the future; the fancy new much-lauded windows terminal, on the other hand, is to horribly latent for comfortable use (as are many others).
verroqover 5 years ago
Anyone else notice that typing directly on the tty is much faster than in a terminal emulator in X11?
评论 #21880934 未加载
评论 #21866765 未加载
asdfsf12323ycover 5 years ago
lol, it crashes when output a lot of text try: yes
评论 #21862978 未加载
jeromescuggsover 5 years ago
wsltty is the most underrated app i use on the regular. i was pumped about the new microsoft terminal for all of 5 seconds, then i used it, what a letdown.<p>with alot of help from wsltty and autohotkey, i am quickly approaching some sort of windows+linux singularity event, <a href="https:&#x2F;&#x2F;i.imgur.com&#x2F;cXykxPN.png" rel="nofollow">https:&#x2F;&#x2F;i.imgur.com&#x2F;cXykxPN.png</a>
评论 #21865546 未加载
birdyroosterover 5 years ago
Too bad it doesn’t handle Unicode. Also it’s a shame that it doesn’t have tabs or any hot keys for increasing productivity. It’s really a good shell if you don’t have work to do.
评论 #21864112 未加载
评论 #21864357 未加载
flowerladover 5 years ago
I was excited about WSL when I first heard about it. But that excitement quickly faded when I realized most real apps, such as gcc, don&#x27;t work under it. The best way to get a Linux prompt on Windows is to use Docker. Use the -v option to share your drive.
评论 #21864346 未加载
评论 #21865103 未加载
评论 #21864165 未加载
评论 #21864196 未加载
lukeschlatherover 5 years ago
It&#x27;s funny, because I quit using WSL because of high latency. I can&#x27;t say input latency is a big deal to me. I can always wait 100ms for the buffer to catch up with my typing.<p>But when most commands have 500ms of overhead that is another story. My Xfce4 terminal running in a Hyper V VM is so much faster. If only there were seamless copy-paste. (Incidentally, I tried using Virtualbox but the latency there is more like WSL.)
评论 #21864756 未加载