You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to see an option to "Allow only one instance." This option
would subsequently suck all new terminal sessions into a new tab in the
same window. The user could then switch tabs with a customizable key
combination, that would default to something reasonable like Ctrl+Tab.
Original issue reported on code.google.com by [email protected] on 30 Dec 2008 at 4:45
Reacted by silverwind, Esa-Matti Suuronen, B. K. Oxley (binkley), Lei Zhang, Michael Palumbo, Eden Caldas, Robert Zhang, VIacheslav B and Anton Kochkov
Well, “your” isn’t exactly the same person as it used to be... but I share Andy’s opinion about where and how Tabs should be implemented, see #8 (comment) and #8 (comment).
An implementation intertwined with the current code is not acceptable because it might compromise the stability of the terminal.
If at all, there could be some kind of add-on that runs multiple instances of the terminal code in widely decoupled processes.
I’ve had another look at ConEmu on this occasion and I don’t currently have the nerve to investigate its configuration which isn’t quite - too intuitive.
If you’d like to contribute a mintty-specific pre-configuration for ConEmu, that would indeed be appreciated. Something like a ConEmu configuration file and a desktop shortcut to start an instance of ConEmu with mintty, any maybe another demo shortcut showing how to start two instances...
IMO, considering Tabs only makes sense after #56 is resolved. With the current state of affairs using a terminal muxer like tmux or screen aligns better with mintty's goals; that is, being a lightweight terminal emulator (Even more so since personally I can use most of the few Windows CLI tools I need within mintty/tmux).
Also, with today's ever increasing screen estate; I'm tempted to claim that the majority uf users prefer more terminal windows per screen, instead of Tabs.
Wow... I'm really amazed at how far mintty has come recently... True color. Sixel. WSL.
I've been using ConEmu and Tmux for a long time, but:
Tmux doesn't have Sixel support, and doesn't plan on adding it
ConEmu has developed their own Cygwin wrapper that I think they're most focused on as opposed to "child window" support... And ConEmu support of mintty for resizing windows, pressing Alt+Enter don't work properly.
This seems to work well at first glance, amazing how you got the session framework integrated without specific support...
I have some initial formal review, mainly concerning code layout, which I'll add as a commit comment.
Tabbar layout can also do with some tweaking, I suppose. The Tab separation is currently not very visible, the font could be smaller, I think.
I'm using the my version of mintty.exe in wsltty for a afternoon.
The trick of session update is that: I always set the tabinfo[i].wnd == wnd tab focused. Because if there is GeomSync, no one cares how background window shows their tabbar.
I also have a consideration: when a tab is clicked, should I move the corresponding window to the position of current window?
What does tab separation mean? The "separation between the tabbar and terminal" or "the separation between adjacent tabs"?
Border style looks nicer, thanks.
Tabbar text is placed higher for active tab, for me that looks distracting.
For the active tab, I would try to use the same colour is in the title bar, because these are related; don't know whether it'll look good.
Also an experimental feature is if we click the tab for window B in window A, then window B will be moved to the position of window A.
That is actually SessionGeomSync=1 or higher already and shouldn't be implied without setting SessionGeomSync. We can later talk about unifying options.
I'm trying a smaller font (0.8*cell_height), but it looks strange.
Might also want to skip display of characters after "…" before "/"; if no "/" displayed but "-", then after "…" before "-"; if neither "/" nor "-" displayed but "_", then after "…" before "_"; unless the number of characters skipped would equal or exceed the number of characters remaining
Could have been a separate issue, yes. Up to @dxhisboy whether to create a new issue, doesn't need to be a PR while being developed and reviewed.
Unfortunately, github does not seem to have a feature to split an issue / move comments (I sent them a request).
Activity
laktak commentedon Mar 9, 2016
@mintty since the original wont-fix comment is from 2010 -- Is your opinion still the same or will we see tabs in the future?
mintty commentedon Mar 10, 2016
Well, “your” isn’t exactly the same person as it used to be... but I share Andy’s opinion about where and how Tabs should be implemented, see #8 (comment) and #8 (comment).
An implementation intertwined with the current code is not acceptable because it might compromise the stability of the terminal.
If at all, there could be some kind of add-on that runs multiple instances of the terminal code in widely decoupled processes.
laktak commentedon Mar 15, 2016
In that case, would officially supporting ConEmu be an option?
I'm using it with mintty at the moment and it appears to work quite well.
mintty commentedon Mar 15, 2016
I’ve had another look at ConEmu on this occasion and I don’t currently have the nerve to investigate its configuration which isn’t quite - too intuitive.
If you’d like to contribute a mintty-specific pre-configuration for ConEmu, that would indeed be appreciated. Something like a ConEmu configuration file and a desktop shortcut to start an instance of ConEmu with mintty, any maybe another demo shortcut showing how to start two instances...
laktak commentedon Mar 18, 2016
It's actually quite easy:
{Bash::Git bash}on the first dialog that appears (I have Git installed, I didn't test with cygwin)You'll get a window with mintty/bash running and can create more tabs with
<win> + wor by clicking on+.TERMis set tocygwin... I think I had some issues with that as I set mine toxterm.mintty commentedon Mar 18, 2016
If TERM=cygwin, you have been starting a Cygwin Console in ConEmu, not a Cygwin Terminal (i.e. mintty).
roeme commentedon May 2, 2016
IMO, considering Tabs only makes sense after #56 is resolved. With the current state of affairs using a terminal muxer like
tmuxorscreenaligns better with mintty's goals; that is, being a lightweight terminal emulator (Even more so since personally I can use most of the few Windows CLI tools I need within mintty/tmux).Also, with today's ever increasing screen estate; I'm tempted to claim that the majority uf users prefer more terminal windows per screen, instead of Tabs.
new option --wsl to enable WSL feature adaptations (mintty/wsltty/#8)
ryanerwin commentedon Apr 23, 2017
Wow... I'm really amazed at how far
minttyhas come recently... True color. Sixel. WSL.I've been using ConEmu and Tmux for a long time, but:
minttyfor resizing windows, pressing Alt+Enter don't work properly.mintty commentedon Apr 23, 2017
Also neither ConEmu nor tmux are themselves terminals.
36 remaining items
dxhisboy commentedon Nov 20, 2019
@mintty I've pushed to https://github.com/dxhisboy/mintty/tree/dev
git diff output is here: diff.txt
Add
ShowTabBar=yesto minttyrc to enable it.Code still needs heavy polishing.
mintty commentedon Nov 20, 2019
This seems to work well at first glance, amazing how you got the session framework integrated without specific support...
I have some initial formal review, mainly concerning code layout, which I'll add as a commit comment.
Tabbar layout can also do with some tweaking, I suppose. The Tab separation is currently not very visible, the font could be smaller, I think.
dxhisboy commentedon Nov 20, 2019
I'm using the my version of mintty.exe in wsltty for a afternoon.
The trick of session update is that: I always set the
tabinfo[i].wnd == wndtab focused. Because if there is GeomSync, no one cares how background window shows their tabbar.I also have a consideration: when a tab is clicked, should I move the corresponding window to the position of current window?
What does tab separation mean? The "separation between the tabbar and terminal" or "the separation between adjacent tabs"?
Biswa96 commentedon Nov 20, 2019
How the tab feature work here? I have to create a new window to see a new tab. Should it not be just one window and multiple tab?
Some points about patch file:
644to755.)and{. e.g.if (x ==0) {andvoid func(int x) {.dxhisboy commentedon Nov 20, 2019
Following the consideration of "Virtual Tabs", this is a "Virtual Tabbar". Actually one window and multiple tab will be very complex.
dxhisboy commentedon Nov 20, 2019
A newer version is available: https://github.com/dxhisboy/mintty/tree/dev and diff.txt.
Also an experimental feature is if we click the tab for window B in window A, then window B will be moved to the position of window A.
dxhisboy commentedon Nov 20, 2019
I'm trying a smaller font (

0.8*cell_height), but it looks strange.dxhisboy commentedon Nov 20, 2019
Are these two border styles better?


mintty commentedon Nov 20, 2019
Border style looks nicer, thanks.
Tabbar text is placed higher for active tab, for me that looks distracting.
For the active tab, I would try to use the same colour is in the title bar, because these are related; don't know whether it'll look good.
mintty commentedon Nov 20, 2019
That is actually SessionGeomSync=1 or higher already and shouldn't be implied without setting SessionGeomSync. We can later talk about unifying options.
BrianInglis commentedon Nov 20, 2019
Always let Windows do it so they are responsible for matching style changes.
BrianInglis commentedon Nov 20, 2019
Might also want to skip display of characters after "
…" before "/"; if no "/" displayed but "-", then after "…" before "-"; if neither "/" nor "-" displayed but "_", then after "…" before "_"; unless the number of characters skipped would equal or exceed the number of characters remainingk-takata commentedon Nov 20, 2019
How about creating a new WIP PR instead of keep discussing in an already closed issue?
mintty commentedon Nov 20, 2019
Could have been a separate issue, yes. Up to @dxhisboy whether to create a new issue, doesn't need to be a PR while being developed and reviewed.
Unfortunately, github does not seem to have a feature to split an issue / move comments (I sent them a request).
BrianInglis commentedon Nov 20, 2019
Would be nice to support git operations on issues - branch, fork, cherry-pick, stash, merge, migrate