Questions tagged [mintty]

Mintty is a terminal emulator for Cygwin and MSYS, it is based on the code from PuTTY 0.60.

Project page: http://code.google.com/p/mintty/

In Cygwin, Mintty is installed as the default terminal by Cygwin's setup.exe. In MSYS, the mintty package can be installed with the command mingw-get install mintty. Alternatively, binaries for Cygwin 1.7, 1.5 and MSYS can be found on the downloads page.

Features include:

  • Xterm-compatible terminal emulation.
  • Native Windows user interface with a simple options dialog.
  • Easy copy & paste.
  • Drag & drop of text, files and folders.
  • Ability to open files and URLs with Ctrl+click.
  • Comprehensive character encoding support, including UTF-8.
  • Wide character display and Windows IME support.
  • Window transparency, including glass effect on Vista and 7.
  • 256 colours.
  • Fullscreen mode.
  • Options stored in a text file. No registry entries.
  • Small program size and quick scrolling.

Mintty works on all Windows versions from Windows 2000 onwards. Similarly to other Cygwin/MSYS terminals based on pseudo terminal ("pty") devices, however, mintty is not a full replacement for the Windows Command Prompt. While native console programs with simple text output usually work fine, interactive programs often have problems, although sometimes there are workarounds.

The Cygwin package ships with a manual page that can be accessed with man mintty. A PDF version of the manual is available from the downloads page. Invoking mintty with the --help option shows a summary of available command line options. Keycodes, control sequences and some random tips can be found on the wiki.

Please report bugs or suggest enhancements via the issue tracker. Vote for any issues you'd particularly like to see addressed by starring them. The discussion group for all things mintty is mintty-discuss. General Cygwin questions should be sent to the Cygwin mailing list.

Mintty is based on code from PuTTY 0.60 by Simon Tatham and team. The program icon comes from KDE's Konsole. Mintty ties directly into Cygwin/MSYS and leaves out PuTTY's networking functionality, which is provided by packages such as openssh and inetutils instead. A number of PuTTY issues have been addressed.

150 questions
2
votes
1 answer

Why does mingw-w64 mintty not signal() my program when I CTRL+C?

MinTTY does not seem to raise a signal to my mingw-w64 program when I hit CTRL+C. In CMD with the same identical program the signal is correctly raised. Why is this? The program is compiled under msys2 mingw-w64 with g++ -static -static-libstdc++…
Xunie
  • 437
  • 4
  • 21
2
votes
2 answers

Set border width for mintty window on cygwin/windows 10

When running mintty on Cygwin with Windows 10, if I have two windows open that partially overlap, and neither has the focus, the bottom and non-scrollbar borders are invisible, and the text of both windows runs together. Is there a way to make these…
Tom Hall
  • 21
  • 4
2
votes
0 answers

How can I set up my msys2 terminal to not buffer output?

When I run msys2.exe and launch a Python program, nothing gets printed to the terminal unless either enough text is printed such that the buffer automatically flushes, or if I run sys.stdout.flush(). In order to fix this, I have to launch msys2 with…
Jordan Epstein
  • 307
  • 4
  • 14
2
votes
1 answer

BC30451 'VARIABLE' is not declared. It may be inaccessible due to its protection level

I seem to have an error with the code below. Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load Me.CenterToScreen() If My.Computer.FileSystem.FileExists("bin\php\php.exe") Then Dim PHPRC As String = "" …
TheDeibo
  • 23
  • 1
  • 1
  • 5
2
votes
2 answers

Why does cygwin mintty type 8~ (tilde) on its own?

CYGWIN_NT-6.3 x86_64 I open and use a terminal (mintty) and every so often an 8~ or simply ~ will appear on the commandline. Why does this happen and how do I prevent this from happening.
Barry
  • 417
  • 6
  • 18
2
votes
2 answers

Colorize man pages (with `less` pager) not working in Cygwin MinTTY

I've tried to copy all sort of color schemes to try and get colors in the man pages -- for example, like what most does by default. But I've never been successful to get something like tmux man-page search highlighting to highlight man pages, even…
2
votes
1 answer

Opening files into an existing vim session (Cygwin/mintty)

I am looking for ideas to open files into an existing vim session. I am working on Windows + Cygwin + Mintty. I usually have 3 to 4 opened terminals (2-3 vim sessions + 1 shell, build environment). I don't use tmux/screen because it's easier to use…
nowox
  • 25,978
  • 39
  • 143
  • 293
2
votes
1 answer

set window title for mintty

With vim running on cygwin, I would like to automatically set the window title on the active buffer name. I wrote this: function! SetMinttyTitle() silent !clear execute "!" . "echo -ne '\\e]0;". @% . "\\a' 2>&1 > /dev/null" endfunction au…
nowox
  • 25,978
  • 39
  • 143
  • 293
2
votes
1 answer

Communicate with (Execute commands in) Cygwin(mintty) using python and get the output

We use cygwin in windows platform for some maintaining work. What I want to do is not only start the cygwin using python or start it and pass a single command. I want to start the cygwin, hold the session, then I pass a command to it if I need to,…
lowitty
  • 904
  • 1
  • 8
  • 13
2
votes
1 answer

How to fix terminal emacs selection highlighting

I'm giving terminal emacs a go. I'm running it in mintty on Cygwin and rxvt on Ubuntu 12.04. I have a problem: selected text is too hard to read. Here's how the text looks in mintty with TERM=xterm (I use a slightly different mapping for blue to…
Barry Kelly
  • 41,404
  • 5
  • 117
  • 189
2
votes
1 answer

Run commands as administrator from cygwin / mintty

I am running mintty on cygwin in Windows 7. I have mintty.exe set to always "Run as administrator". I am trying to run cmake from within mintty to build a Visual Studio 11 solution. However, when cmake tries to do a test compile it fails, because…
marco1475
  • 55
  • 1
  • 6
1
vote
0 answers

The function _getch() behaves unexpectedly in git-bash terminal

I have been trying to figure out how it is possible to change the terminal's mode from "cooked" to "raw" using C and in a Git Bash terminal. I have tried to execute the program with winpty and that makes that certain part of the program function as…
ilittlebig
  • 21
  • 3
1
vote
0 answers

'C:\Program' is not recognized as an internal or external command in 'Git Bash Here' terminal - Windows (salesforce sfdx) - SOLVE

I'm here to ask you a very strange problem. Right now i'm starting to work on Salesforce technology, in windows, and currently i follow the tutorial. When finally arrive to the terminal part, Windows come out to create problem... I state that I am…
1
vote
0 answers

Why is MSYS2 using non-standard terminal colors?

I have been trying to figure this out for a couple hours and it has left me confused. I have installed MSYS2 on Windows 10, and added it as a profile to windows terminal by adding the following snippet to the profiles section of my settings.json: { …
Ryan
  • 119
  • 2
1
vote
1 answer

Mintty window brought to forefront causes keyboard backlight to turn off

With a fresh install of git version 2.37.0.windows.1 which has mintty version 3.6.1 (x86_64-pc-msys)[Windows 19043] The keyboard back-light turns off whenever the mintty window is brought to the forefront. When I push the back-light toggle…
NorthDecoder
  • 47
  • 1
  • 8