Hot answers tagged

15

You can change it with the xterm control sequence for this, like so: echo -ne '\e]0;Title\a' Refer to: http://code.google.com/p/mintty/issues/detail?id=241


15

Right-click in mintty, then in Options...->Terminal, change type to xterm-256color, click OK, close mintty and re-launch it.


14

Just edit your /etc/passwd and replace /bin/bash with /bin/zsh.


12

Cygwin's vim is configured to behave like traditional vi by default. Just create an empty ~/.vimrc, which causes vim extensions to be enabled and hence the Backspace and arrow keys to behave as expected.


9

Try export TERM=xterm-256color or equivalent. You can add that to the appropriate dotfile if you want it to be persistent. You can use a 256-color demo script like this to verify functionality.


8

You can just create a mintty shortcut, with these settings: Target: C:\cygwin\bin\mintty /bin/env CHERE_INVOKING=1 /bin/bash -l Start in: C:\Users\yourName No scripts required. Setting CHERE_INVOKING stops /etc/profile from changing directory to $HOME. (That variable comes from the 'chere' package.)


7

Interactive non-Cygwin program often don't work correctly in Cygwin terminals such as mintty that are based on pseudo terminal ("pty") devices. That's because Cygwin uses Windows pipes to emulate ptys, so native console program see a pipe where they expect to see a console. Among other issues, that often causes them to enter non-interactive mode. See here ...


7

I've experienced the same issue - however in my case I am SSH'd in the Cygwin server so obviously a Win32 GUI askpass won't work. Instead, I wrote this simple script to do the askpass. I though it could be used from regular prompts as well by getting the tty device from /bin/tty.exe but that didn't work for an unknown reason (feel free to tty yourself or ...


6

OK, I think I've found a definite solution. The problem is that, regardless of the terminal used (puttycyg, mintty, cmd.exe), Git by default, in the absence of better configured alternatives, tries to use a "simple password prompt" (as you can read in the description of core.askpass config option). The simple password prompt apparently only works on real ...


6

After reading some answers to this question, I was unable to quickly understand why my terminal title stay unchanged. The following command line is no sufficient echo -ne "\e]0;MYTITLE\a" You will need to check that other environment variables doesn't include this kind of directive. For example, with a default Cygwin installation, you could have the ...


5

With the help of the mintty mailing list (https://groups.google.com/forum/?fromgroups#!topic/mintty-discuss/v4b86DBNI80) I found the answer. The lines that I need to add to .zshrc are bindkey '\e[H' beginning-of-line bindkey '\e[F' end-of-line


5

See here: http://code.google.com/p/mintty/wiki/Tips#Changing_colours


4

You can set the colours in the ~/.minttyrc file. Even better you can get a prebuilt theme from here: https://github.com/mavnn/mintty-colors-solarized Here is what I have in my ~/.minttyrc file: BoldAsFont=yes Transparency=off OpaqueWhenFocused=yes Columns=115 Rows=34 Term=xterm BackspaceSendsBS=yes Font=Consolas BellFlash=yes Locale=en_GB Charset=UTF-8 ...


4

If your shortcut is using mintty.exe then change it to: C:\cygwin\bin\mintty.exe -i /Cygwin-Terminal.ico /bin/zsh --login


4

Adding RowSpacing=-2 to ~/.minttyrc solved it for me. You might want to try different (negative) values depending on the font you use. I prefer Lucida Console 9, setting RowSpacing to -2 restored the look as it was before Mintty version 2.2.4.


3

Here my complete list of additional useful bindings (corrected to remove colons from commands). # ctrl-left/right bindkey "\e[1;5C" forward-word bindkey "\e[1;5D" backward-word # ctrl-backspace/delete bindkey "\C-_" backward-kill-word bindkey "\e[3;5~" kill-word # alt-backspace bindkey "\e\d" undo bindkey "\e[3~" delete-char bindkey '\e[H' beginning-of-...


3

The application most likely uses Windows console APIs rather than ANSI color sequences. Mintty is a Unix terminal (based on Cygwin's pty implementation) rather than a Windows console wrapper though, hence those console API calls will have no effect. There's currently no way to make this work in mintty, although there are various rather complex ideas on how ...


3

t_ti and t_te are both Vim options. Values are normally assigned to them by using the :set command, as :set t_ti=abcde, where the right-hand side (abcde in this example) is a literal string. The :let command is more flexible than :set and can be used to set the values of other types of variables besides options. To distinguish options from other types of ...


3

The problem here is a combination of the different Python installations and Python's "flushing" behaviour. Flushing refers to writing something from memory to file or screen. When a well-designed program is writing something to a screen, it will detect that and write ("flush") it to the screen immediately, so it can be seen immediately. However, if a ...


2

In bash, the variable PROMPT_COMMAND can be set to hold a number of commands, seperated by semicolons. you can use that to do the same title setting as described in the other response that talks about zsh.


2

1) echo $PS1 and copy that string to your clipboard or text editor, as in echo $PS1 2) edit ~/.bash_profile and add shell code below, replacing $PS1 as necessary but keep the ${TERMINAL_TITLE} variable in the "false" condition. 3) Save the file and set the TERMINAL_TILE environment variable, as in export TERMINAL_TITLE="My Custom Title" 4) Source your ...


2

As documented in the mintty wiki, you can create a shortcut with the target directory in the Start In field and the following command in the Destination field: C:\cygwin\bin\mintty.exe /bin/env CHERE_INVOKING=1 /bin/bash -l (change the path to mintty as needed).


2

Those colors are not defined by SuperTab, they are defined by your colorscheme. To change the colors of the completion menu, open ~/.vim/colors/colorscheme_name.vim and edit the lines starting with hi Pmenu*.


2

OK, I figured it out. edit the script called /bin/xhere. Towards the bottom, you should see something like.... case $1 in /bin/sh* | /bin/bash* | /bin/pdksh* | /bin/posh* | /bin/tcsh* | /bin/zsh* | /bin/dash* | /bin/mksh* | /bin/fish* ) echo Starting $1; exec -l $1;; * ) echo Do not recognise $1;; esac And what you want to do is comment out ...


2

To open another instance of an application, you have to Shift+Click instead of just clicking (or press Shift+Enter if you prefer the keyboard). I've also found some very helpful additional information in this question.


2

From the Cygwin FAQs: Another cause for AD client system is slow DC replies, commonly observed in configurations with remote DC access. The Cygwin DLL queries information about every group you're in to populate the local cache on startup. You may speed up this process a little by caching your own information in local files. Run these commands in a ...


2

Mintty is indeed well supported by MinGW/MSYS; in fact, much of the configuration is already done and waiting to be activated. Install mintty. This can be done either at the MinGW command line or via the MinGW Installation Manager From the MinGW command line, run mingw-get install mintty. It takes a few moments to download and install the mintty ...


1

Have you tried running mintty with "-e" switch? C:\cygwin\bin\mintty.exe -e /bin/vim


1

I've tried pasting a load of stuff (10k lines) to two RedHat servers we have (one low latency one medium) using Putty and MinTTY but have not been able to replicate the problem. I think trying putty would be the easiest and most likely to work.



Only top voted, non community-wiki answers of a minimum length are eligible