4 ms·
On a tangent, it would be awesome to have tmux for Windows Terminal without WSL (i.e. a native windows app). I've remapped Windows Terminal shortcuts to be like
by eatonphil 5y ago
On a tangent, it would be awesome to have tmux for Windows Terminal without WSL (i.e. a native windows app). I've remapped Windows Terminal shortcuts to be like tmux bindings which gets me closer but it's still not the same.
- mkhnews 5y agotmux in mintty ?
- eatonphil 5y agoYeah that's an option but I can't stand Cygwin UX. tmux and mosh for native Windows would both be awesome.
- csdvrx 5y agoTry sixel-tmux compiled with msys2 in Windows-Terminal: https://github.com/csdvrx/sixel-tmux/blob/main/tmux.exe https://github.com/csdvrx/sixel-tmux/blob/main/tmux.exe Or compile it yourself using MinGW64 : after installing from msys2.org, pacman -S base-devel etc It works fine here. I have a Windows Terminal settings to start sixel-tmux instead of bash, using script to provide a pty: just have the command line be: C:/msys64/usr/bin/env.exe MSYS=winsymlinks:nativestrict MSYSTEM=MSYS /usr/bin/script -c /usr/bin/tmux /dev/null
- rashil2000 5y agoWow, I'd been dying to make tmux work on WT. I couldn't get your tmux.exe executable to work (it froze WT, in both bash and cmd). However, the script method works!
- csdvrx 5y agoI thought you might be having this issue, which is why I tried to be very explicit. It's due to a cygwin and how /dev/cons* are different from /dev/pty* cf https://cygwin.com/pipermail/cygwin/2020-May/244878.html https://cygwin.com/pipermail/cygwin/2020-May/244878.html I've tried to explain that a bit better in server-client.c (check line 251) to give the user a clue of what's happening with *cause = xstrdup(c->ttyname) Unfortunately, even in 2021, properly configuring a terminal can be complicated. That's why sixel-tmux page has a step-by-step configuration guide, and why I often provide config files in other projects like https://github.com/csdvrx/indent-rainbow https://github.com/csdvrx/indent-rainbow : if needed, check https://github.com/csdvrx/indent-rainbow/blob/main/config/windows-terminal.json https://github.com/csdvrx/indent-rainbow/blob/main/config/wi... even if I need to update it that should give you a good base to start tweaking from. I strongly encourage you to check your configuration with the steps suggest on the sixel-tmux page, or at least the minimal set of steps shown in http://github.com/csdvrx/sixel-testsuite http://github.com/csdvrx/sixel-testsuite (which I should update to show how font change should work, with sixels being resize to be kept in perfect alignment with the text, as done in mintty, as several people seem to believe it's a sixel limitation)
- rashil2000 5y agoOh, I apologize! I was under the impression that your executable would work without the /usr/bin/script workaround. My bad! I was aware of the Cygwin's tmux quirk, but not the script workaround. Thanks again for the detailed help!
- rashil2000 5y agoAlthough there's no mosh-server, some people actually ported the mosh-client[1] to Windows using C#. This client is currently being used in the popular Fluent Terminal for Windows[2]. [1]: https://github.com/jumptrading/mosh-windows-wrappers https://github.com/jumptrading/mosh-windows-wrappers [2]: https://github.com/felixse/fluentterminal https://github.com/felixse/fluentterminal
- zadjii 5y agoAt one point, I think that was one of my in-parallel goals of the Terminal project, but at this point I think it's just become a part of my own mental goals for the Terminal. There's already so much of the tmux-like stuff that I really liked from tmux, that we may as well just go whole-hog on it at this point :)
- csdvrx 5y ago@zadjii, in case it's not clear enough from my praises on how promising Windows Terminal Preview is, thanks a lot for all the wonderful work you're doing with the Windows Terminal team. At first I was afraid the project would take the easy way out and ignore hard features or take shortcuts (ex: SGR1 : bold or bright? or both? or none?) but you have shown you are willing to do what it takes to properly support applications. This is not just in line with the reputation of Microsoft when it comes to backwards compatibility, but going above and beyond to make sure everything works perfectly. When sixel support is added to WT, it will replace mintty as my favorite terminal -- and I'm very picky when it comes to terminals. WT is a wonderful contribution to the open source world, and I hope it will inspire similar terminals on Linux (or be usable through wine) Oh, and uh, my apologies if you felt my contribution to the sixel thread (PR #448) were out of line. Since your last message, I've realized my posts may be off topic, as a degraded mode is not what most people may want, even as a stopgap measure, so I've stopped posting there.