Is a fantastic piece of software that smoothes some of the edges of the Windows command line experience. You should use it and here’s why:. MinTTY comes with Cygwin Installing MinTTY is trivial: just select the mintty package in Cygwin’s setup.exe and point your Cygwin shortcut to C: cygwin bin mintty.exe.
Mintty Config
The trailing hyphen is important. Sane copy and paste By default, MinTTY copies on select and pastes on right-click, just like Linux. However, you can make it behave like a typical Windows application and show a context menu upon right-click.
I won’t bother explaining how difficult copying and pasting is in standard Windows consoles. Resizing MinTTY supports arbitrary window sizes, including maximized. Works with less/emacs/ssh Because MinTTY is based on PuTTY, it doesn’t display output strangely when running emacs over ssh, among other examples. It’s FAST Anyone who has done command line work on Windows has surely noticed that, when a program spews output to the console, system performance nosedives.
Sometimes, even the mouse cursor skips, making it hard to kill the program responsible. MinTTY doesn’t have this problem — it uses minimal CPU, even under heavy load. Doesn’t bypass RSI Guard Five years ago, I was diagnosed with repetitive stress injuries from programming.
To make matters worse, I get obsessive when I work, and nothing can pull me away from the keyboard. Keeps my wrists and elbows pain-free by enforcing short, periodic breaks. However years of exposure to RSI Guard has caused me to discover its holes. For example, native console windows bypass RSI Guard’s protection, so when RSI Guard blocked keyboard and mouse input, I would quickly switch to typing in a console window and continue to work.
Because MinTTY is a standard Windows application, it closes this backdoor. Closes even when programs are backgrounded Open a fresh Cygwin and type notepad & followed by exit. The Cygwin console sticks open until you close Notepad. In MinTTY, you can always close the window, no matter how many background processes you’ve started.
Alt-F2 opens a new terminal window Pure convenience: Alt-F2 opens a new terminal. No need to reach for the mouse.
Shift-PageUp and Shift-PageDown! For rapidly paging through previous lines of output, you can press Shift-PageUp and Shift-PageDown, just like the Linux console. Another huge convenience. Author Posted on. “MinTTY comes with Cygwin” Score: +1 for you 2.
“Sane copy and paste” The dos console on my xp box has exactly the same copy and paste behavior as Linux. “Resizing” My dos console also maximizes to full screen, minimizes to the tray and/or reverts to its former arbitrary size. “Works with less/emacs/ssh” Score +2/3 for you. I ssh on my dos console using python/paramiko/pycrypto. “It’s FAST” Can you prove it?
“Doesn’t bypass RSI Guard” Score +1 for you 7. “Closes even when programs are backgrounded” Why is this important?
The command “notepad & exit” on dos works, only the sequence differs. “Alt-F2 opens a new terminal window without a mouse” I use hotkeys to do the same. “Shift-PageUp and Shift-PageDown!” Huh? Is that different from just pgup or pgdn?
Good article. I agree that minTTY has its charms. Ciao, Bill. Mintty doesn’t directly support changing ansi color mappings.
But i found out how to get the cool desert color scheme in mintty!! Just copy/paste these escape sequences or add it to your.bashrc.
Echo -e “ e4;15;#ffffff a” echo -e “ e4;14;#ffd700 a” echo -e “ e4;13;#ff55ff a” echo -e “ e4;12;#87ceeb a” echo -e “ e4;11;#ffff55 a” echo -e “ e4;10;#55ff55 a” echo -e “ e4;9;#ff5555 a” echo -e “ e4;8;#555555 a” echo -e “ e4;7;#f5deb3 a” echo -e “ e4;6;#ffa0a0 a” echo -e “ e4;5;#ffdead a” echo -e “ e4;4;#cd853f a” echo -e “ e4;3;#f0e68c a” echo -e “ e4;2;#98fb98 a” echo -e “ e4;1;#ff2b2b a” echo -e “ e4;0;#4d4d4d a” Set the foreground, background and cursor color from the UI. I suggest foreground = 255,255,255 background = 51,51,51 cursor = 0,255,0 Enjoy.
I’ve been using MinTTY for a while now, but wasn’t aware of some of these features. Thanks for the article. Another handy thing is adding a menu entry to the shell, so you can select “Mintty here” in Windows Explorer and open a Mintty terminal at that current directory. For this example, first install the “chere” package in Cygwin setup, then add the following registry entries: Windows Registry Editor Version 5.00 HKEYCLASSESROOT Directory shell mintty @=”Mintty Here” HKEYCLASSESROOT Directory shell mintty command @=”c: cygwin bin mintty.exe -e /bin/xhere /bin/bash.exe ”%L ”” HKEYCLASSESROOT Drive shell mintty @=”Mintty Here” HKEYCLASSESROOT Drive shell mintty command @=”c: cygwin bin mintty.exe -e /bin/xhere /bin/bash.exe ”%L ”” Copy those into a file “cygwin-mintty-here.reg” then right-click and select “Merge.” Done! To remove the menu entry, add the following to a file, (e.g., “cygwin-mintty-hereremove.reg”) and Merge: Windows Registry Editor Version 5.00 -HKEYCLASSESROOT Directory shell mintty -HKEYCLASSESROOT Drive shell mintty Thanks for the tips! Craig –EOM.
Windows Shell Limitations We’ve already shown you so you can use Windows and not have to miss out on that command-line goodness. For a lot of people, however, the excitement of running bash in Windows is severely hampered by the fact that Cygwin uses the Command Prompt shell to get things done. Here are some of the more common problems and complaints with this setup:. Resizing the window horizontally doesn’t work properly.
Can’t efficiently change font faces or sizes on-the-fly. Scrolling via the keyboard doesn’t work.
Selecting text over multiple lines doesn’t work. With some configurations, selecting text at all doesn’t work.
Shiv tandav trance mp3 free download. It is illegal for you to distribute copyrighted files without permission.
It’s all sorts of ugly compared to what Linux terminals provide. A useful tool that’s a chore to utilize doesn’t really take me very far.
How about you? Mintty Saves the Day is a great alternative shell for Cygwin that provides a host of useful features and alleviates the above problems.
If you use instead of Cygwin, Mintty works beautifully with that, too. You can install Mintty by grabbing it from the (make sure you get the proper version for your setup!), or you can just run again. At the Select Packages screen, look under “Shells” and find Mintty. Click where it says “Skip” and hit the Next button. Once you’ve finished installing it, you should be able to go to Start All Programs Cygwin mintty to launch it. Here’s what the default Mintty window looks like: It’s a little vanilla, but you’ll notice the resizing works properly and the font is at least a little better. You can hit Ctrl and + or – to make the font bigger or smaller at any point in time.
Right-click the Title Bar and choose Options First thing I did was change the window transparency and the cursor in the Looks tab to something I’m more familiar with. Head over to the Text tab when you’re done that.
You can change the default font, of course, but also the Locale and Character Set to something different from what Windows is using right now. You can also play with font smoothing if your monitor shows it a little too jaggedly. Under the Mouse options, you’ll be able to change your mouse interaction settings, such as copying and pasting. You can also easily make the mouse place the command-line cursor, something that vim users often seem to like.
Lastly, click on Window. Here, you can change the default terminal size, the scrollback buffer size, and choose a modifier for scrolling with the arrow keys. By default, Shift+Up/Down will scroll through the buffer in the window. Now here’s what my modified Mintty configuration looks like. (Click on the above image to see a larger version.) Other Methods (for PuTTY-Lovers) Mintty is great, but others may not like it so much. We showed you, and many people use PuTTY or KiTTY to connect to Cygwin that way.
However, if you don’t want to set up SSH access, there’s an easier way. Is a patched version of PuTTY that is able to connect to native Cygwin installations. There’s only one hitch: PuTTY was to version 0.61, adding support for Windows 7’s jump lists, Aero-resizing, and non-fixed-width fonts. PuTTYcyg hasn’t been updated yet, so you’ll have to choose between Cygwin support and Windows 7-compatibility. I haven’t been able to find the patch itself, so I haven’t tried adding support to the latest version of PuTTY. If you have, please leave a line in the comments.
Personally, I prefer KiTTY over PuTTY because of it’s more customizable and was updated more often over the past 4-years. There’s a which adds this functionality for others like me. To be honest, though, since I started using Mintty with Cygwin I haven’t touched KiTTY in weeks. Lastly, if you’re looking for something that supports Cygwin as well as the Windows Command Prompt, you might be interested in.
It’s a console replacement that allows tabbing of multiple types of shells as well as adding transparency and on-the-fly font changes. Do you have a preferred Cygwin shell? Do you have an alternative to Cygwin? Know of a patch that works with PuTTY 0.61? Let us know below!
I was looking to use Cywgin from within Console2 so I did the following: 1) Opened a new Console2 instance 2) Set Shell to C: cygwin bin mintty.exe -i /Cygwin-Terminal.ico - (this is the path taken from my Cygwin shortcut) This worked perfect, the Console tab now behaved as a cygwin terminal. Howver, when I opened a new tab, a new Cygwin terminal opened (as in the Cygwin application itself), as well as an instance of Console2. The instance of Console2 is unusable - it appears just as the border of the application, with only the mimimize, maximise and close buttons. Also, when I start a new Console2 now, the same problem occurs. How do I (i) get Console2 working again (in non-Cygwin mode) and (ii) get Cygwin working properly? All suggestions much appreciated.
About your posting number 3: How did you set up your.bash. tab? Are you sure that bash was loaded? About your posting number 4: Did you correctly install zsh?
Does it work if you start it from a normal Windows command window? And in general: Did you do your modifications in your main (i.e. Default) tab, or in additional tabs?
I always put these things into.new. tabs in Console2, and leave the first (default) tab unchanged. Doing so, does not cause problems if I happen to set up a command which doesn't work. Thanks for the quick reply rovf.
See answers inline. About your posting number 3: How did you set up your.bash. tab? Are you sure that bash was loaded? I don't have zsh so I used cmd /c c: cygwin bin bash -l.
Bash is present and correct. About your posting number 4: Did you correctly install zsh? Does it work if you start it from a normal Windows command window? Sorry I meant cmd /c c: cygwin bin bash -l And in general: Did you do your modifications in your main (i.e. Default) tab, or in additional tabs? I always put these things into.new. tabs in Console2, and leave the first (default) tab unchanged.
Doing so, does not cause problems if I happen to set up a command which doesn't work. I left the other tabs as they were (default Windows behaviour), opened a new tab and made the Shell setting in there. As for bash, I usually specify '-i' too (to ensure that it's regarded an interactive shell).
However, I don't think that this really matters in your case. More strange is the fact that you did NOT modify the primary tab, but Console2 doesn't start anymore. This certainly should not happen. Maybe a corrupted XML file? I would first try to start Console2 from the command line, to see whether there are error messages which might hidden when starting it from the Desktop.
Then, I would inspect the XML file for the console configuration (ideally using an editor which does syntax colouring), to verify that it is well-formed. Not being the developer of Console2, I fear I won't see logical errors in the XML file, but if you find a way to upload it somewhere and post the link, maybe someone with more knowledge on the matter could have a look. Next I would try is to re-install the original XML file (to test whether the problem is in the XML file, or somewhere else). Of course you should backup your current one.
One more idea: Did you ever - during your changes in the settings - check the box 'save settings to the user directory'? If this were the case, it could mean that Console2 is using a different XML file than you think it does. BTW - When starting Console2, you can always use the -c option to explicitly specify, which XML file to use. So i've reinstalled Console2, and have diffed the XML of the new install against that of my install that started to misbehave.
The only diff I can see is(ldiffs in bold) There are two other diff but they relate to the cosmetics of Console2 so I imagine they are irrelevant to this problem. I wasn't checking the save settings to the user directory' box when making those changes for Cygqin. So at this point with the new install, Cygwin is working as expected, apart from the (i) my cygwin aliases not being recognized and (ii) it does not like when I attempt to grep over./. The latter works fine in Cygwin itself. I've tried both of the above using an application similar to Console2, and they are a problem there too, so perhaps this is not somehting that can be solved. I can underrtsand why Console2 or similar program might not be aware of my Cygwin aliases, bu tthe grep issue is very odd indeed. Evan, sorry to be late to the party, but here you are.
Most likely problem with missing aliases and non-working grep is differences in environment. First thing I would do is to compare the output of 'set' from two instances of bash (one from cmd and one from Console).
Maybe something like HOME or TERM is missing (most likely that how Alan got it working by using the shortcut). Second, is mintty a GUI app that looks like a terminal (similar to PuTTY)? If so, don't try to use it as a shell in Console. Thirdly, I vaguely remember being surprised by non-working 'bash -i -login' while 'bash -login -i' works.
Toll Free (844) 392-2698 Categories Manufacturers > > > Beckman FG2 Used Beckman FG2 Function Generator The Beckman FG2 Function Generator is one. Beckman function generator fg2 manual treadmill.
I use bash from msysGit - the Shell field is c: path to bash.exe -login -i - and everything seems to work fine, including stuff from my bash profile and grep./. Kirill.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |