Table of Content

mintty highlights

  • most lightweight terminal emulator for Cygwin, MSYS or Msys2
  • re-sizable xterm
  • scrollback lines almost unlimited
  • copy/paste

how to launch mintty

give Git for Windows as example.

you can double click git-bash.exe it calls bash –login -i;
also start it from bat file which has more control:

start .\usr\bin\mintty -l .\home\mintty.log -t "git mintty" /bin/bash --login -i
-l output to log file
-t title

mouse paste

default paste is Middle button, I prefer to change to Right button.

how mintty works with portabledevops

  • place portabledevops script to Git etc/ folder
  • launch git-mintty.bat, will init for portabledevops
Welcome to portabledevops
Platform: MSYS
Home: /home/username
Portable path: /oldhorse/portableapps
Driver: C
Shortcut: alias|grep /oldhorse/portableapps
Sat, Oct 14, 2017  1:10:55 PM

interactive program

as known issue, need winpty to run interactive program.

$ winpty python
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>