Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
15 views

What do I need to do to select text (using keyboard) in mintty (win)?

Context: Windows (10), git-bash, using mintty as terminal. Actual Need/Use case: Select text in mintty, to be able to simply copy and paste quickly between terminals, editors, other apps. Preferably ...
Marcus Widerberg's user avatar
0 votes
0 answers
21 views

Cygwin shell behavior when running native executable

Since Windows is not a fully compliant POSIX system, there are significant challenges in implementing an efficient emulation of fork on Cygwin. Cygwin still does a decent job of it but the performance ...
mindoverflow's user avatar
0 votes
0 answers
39 views

Cygwin/Msys2 mintty suddenly swallows or escapes AltGr keys (backslash, curly braces, pipe) - Win 10 22H2?

I'm using a German keyboard. On German keyboards, some characters have been turfed to an indirection with the right Alt key, labeled AltGr (I think English keyboards label that one simply Alt as well,...
Peter - Reinstate Monica's user avatar
2 votes
1 answer
204 views

Letter g added to beginning of line when editing in VIM and using XTERM (Cygwin mintty from windows)

Mysteriously a letter g would get added to the beginning of the line when first opening up a file to edit with VIM when using an XTERM terminal on Windows onto a Linux host. The bug has something to ...
native0ne's user avatar
1 vote
1 answer
1k views

Can I run a minimised program from task scheduler?

I have a sync program which runs various Git commands to update a repository. So far I have written a functioning .sh script and scheduled it to run periodically from startup. Currently, I will be ...
SKLR's user avatar
  • 33
-1 votes
1 answer
61 views

How can I detect focus lost in mintty under Cygwin?

Does mintty under Cygwin in any way support the events of losing and gaining focus? I'm looking for the equivalent of WM_KILLFOCUS from Windows or autocmd FocusLost * call ... from gvim, but under ...
Irfy's user avatar
  • 9,558
0 votes
1 answer
171 views

he input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'

If you are getting this kind of error then follow these instruction
er.arunkushwaha's user avatar
1 vote
0 answers
128 views

How can a Msys2/ucrt64-console be started with parameters for mintty?

C:\msys64\ucrt64.exe provides console, but does not accept mintty-parameters eg "-p 0,0". C:\msys64\usr\bin\mintty.exe -p 0,0 position is Ok, but the PATH is not correct PATH. How could ...
Franz Reiter's user avatar
1 vote
2 answers
283 views

Git bash in Windows: change the default directory when opening mintty (pwd)

I am loosing a lot of time searching in internet for the following simple setting. I installed git (and git bash) in Windows. What I want is just to open Git Bash and be in the directory I want. I don'...
fresko's user avatar
  • 2,040
0 votes
0 answers
439 views

How can I redirect the output of mingw64.exe to stdout?

I'm using mingw-w64, as provided by MSYS2, to compile an application for Windows with a Makefile. As part of this process, I need to run a configure script within MSYS2. I can execute it in Windows ...
JesseTG's user avatar
  • 2,107
1 vote
0 answers
92 views

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 ...
ilittlebig's user avatar
3 votes
1 answer
198 views

Windows10 GitBash hanging for about five minutes on commit: is this normal?

My GitBash's version is 2.36.1My Mintty's version is 3.6.1 (x86_64-pc-msys) [Windows 19044] My GitBash's Mintty terminal hung for about five minutes on commit upon running the following: <user> &...
Stefano's user avatar
  • 85
2 votes
0 answers
897 views

Shift-arrow keys send ABCD in Git Bash in VS Code integrated terminal (Windows 11)

I am using git bash through the VS Code integrated terminal. I want to use shift and the left/right arrow keys to select text. This feature used to be working but broke for me recently, and I can't ...
Tom Binford's user avatar
1 vote
0 answers
376 views

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 ...
Ryan's user avatar
  • 119
-1 votes
1 answer
384 views

Git Bash issue when 'Entering interactive session'. (Windows 10)

SSH used to work nicely with Git Bash before. Don't know what happened recently. SSH version on CMD: C:\Users\ my-user>ssh -V OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2 Debug/errors On CMD: C:\...
swapblue's user avatar
1 vote
1 answer
352 views

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 ...
NorthDecoder's user avatar
0 votes
1 answer
126 views

Running Rails commands in ConEmu using {bash::mintty} not working

Every time I run a Rails command such as rails -v in ConEmu using the {bash::mintty} terminal, I get the following error: unknown mingwarch "msys" (RuntimeError). However, ruby -v works ...
Gabriel Guérin's user avatar
1 vote
1 answer
255 views

Issue with MinTTY/MSYS2/bash and sbt showing control characters / no rich text output

A recent update (of either MinTTY/MSYS2/bash or sbt) started breaking the output of sbt such that control characters are appearing instead of displaying rich text output in the terminal: From the ...
Daniel's user avatar
  • 9,331
0 votes
1 answer
246 views

How do I get exit code of script run with mintty.exe?

In Windows, I'm excecuting a bash script using Cygwin64 and mintty.exe, this way: mintty.exe -e C:\some_path\some_bash_script.sh I need to capture the script's errors but %ERRORLOVEL% is always 0, ...
stander's user avatar
  • 65
0 votes
0 answers
96 views

run mintty(cygwin) remotely from jenkins

I am trying to run "configure" and "make" commands on windows platform (cygwin), from jenkins pipeline, running using this below command : bat "${CYGWIN_EXECTION} /cygdrive/c/...
Hare Krshn's user avatar
2 votes
2 answers
2k views

How to use the terminal tabs feature in mintty/MSYS2?

According to https://github.com/mintty/mintty/issues/944 since mintty 3.5.1 there should be a tab bar where you can open multiple tabs with terminals in parallel. For that reason I performed an ...
Regis May's user avatar
  • 3,378
0 votes
0 answers
214 views

Launch EXE compiled using MSYS2 with Mintty terminal

I have a GUI application written using GTK that I would like to launch (by double clicking it in Windows File Explorer) with the Mintty terminal used by MSYS2 along with it. This is for debugging ...
Leigh K's user avatar
  • 573
-1 votes
1 answer
2k views

docker-compose exec workspace bash - DOES NOT OPEN ANYTHING

I'm doing a class project, I have to follow some steps and there's one that is not working. Here's the problem. I have to use: docker-compose exec workspace bash To open a directory and be able to ...
virxu's user avatar
  • 23
1 vote
0 answers
437 views

WSLTTY/MINTTY Fails on Launch

After a machine restart last night my WSLTTY/MINTTY terminal crashes when I attempt to launch it. It displays an error message briefly before it crashes that reads: note: backend error output: ...
IAmPeculiar's user avatar
1 vote
1 answer
1k views

how to change default settings in .minttyrc programmatically

I want to increase the default font Lucida Console from 9pt to 12pt and adjust the blue color quality. Currently the only way I can find to do it is by right-clicking the Cygwin window and selecting ...
Greg's user avatar
  • 1,842
0 votes
1 answer
211 views

tput is very slow on MinTTY (Git Bash)

Git Bash is pretty sluggish overall (compare 1.082s of average runtime under WSL/Ubuntu vs 4.460s in MinTTY). I've narrowed down a whopping 1.479s to the following chunk of code: # Determine if this ...
Sean Allred's user avatar
  • 3,638
0 votes
1 answer
456 views

How to install dialog for windows to be available in mintty bash

I want to install dialog package for windows to use it in scripts at mintty bash. The dialog package => https://cygwin.com/packages/summary/dialog-src.html
Tajuddin Khandaker's user avatar
4 votes
1 answer
1k views

How do I change the launch position of Git Bash for Windows?

Whenever I launch the Git Bash window, it always starts at the upper left corner of the screen, so I have to drag it to the center to see it clearly. Is there a way to change the default launch ...
kohane15's user avatar
  • 859
2 votes
1 answer
1k views

Incorrect display of 4 byte emojis in vs code integrated terminal

Why is my VSCode integrated terminal not able to show correct emojis: Text file: 🦎 Emoji which produces with cat file.txt the output: �🦎 Emoji I use a proper UTF8 font MesloLGS NF (pk10 powerline ...
Gabriel's user avatar
  • 9,352
0 votes
1 answer
859 views

How can I enter the copy mode when I scroll the mouse while using Tmux in MinTTY?

Scrolling the mouse while using Tmux in MinTTY, the command history is scrolled. It seems that MinTTY converts mouse scroll event to up/down key. In the past, I tried the following terminal with tmux2....
goa12z's user avatar
  • 1
0 votes
1 answer
650 views

Correct configuration for Windows' default console window to fix limited default scroll-back

am installing Git and I have to choose which terminal emulator to use with my Git bash. I have to choose between Windows' default console window instead of MinTTY(the default terminal of MSYNC) but I ...
Ayub Metah's user avatar
0 votes
0 answers
855 views

"unknown encoding name" when using gem command

On Windows 10 using the Cygwin environment, I get the following error: $ gem list ERROR: Loading command: list (ArgumentError) unknown encoding name - CP20127 ERROR: While executing gem ... ...
user1934428's user avatar
  • 21.8k
1 vote
0 answers
1k views

Git Bash in VS Code doesn't display all colors correctly

Problem I'm using git bash in Visual Studio Code and it doesn't seem to work perfectly. By enabling terminal.integrated.windowsEnableConpty I could at least get rid of all the escaped color codes - ...
DarkMikey's user avatar
  • 392
4 votes
3 answers
7k views

How to change from MinTTY to Windows 10 default console in Git Bash?

I am using Windows 10. I have Git Bash (from Git 2.20.1) installed with configuration of using MinTTY as terminal emulator. I can see that following entry in Git-2.20.1/etc/install-options.txt Bash ...
Preetam Palwe's user avatar
1 vote
1 answer
2k views

xterm-256 support for git bash

I am trying to enable xterm 256 color via git bash. It turns out there are 2 ways to start a git bash in Windows. windows cmd, run this git-cmd.exe --command=usr/bin/bash.exe -l -i mintty, run git-...
Eric Sun's user avatar
  • 883
1 vote
1 answer
1k views

I've installed GIT on Windows 7 32-bit and Git Bash is not opening

So I just started learning about GIT and installed GIT on my system. Everything is working: Git GUI, Git CMD, except Git Bash. It doesn't show any errors, it just doesn't open. I tried opening it as ...
Icarus M.'s user avatar
0 votes
1 answer
187 views

What is the difference between vi is hashed to (<path>) and vim is <path>?

Can anybody please explain what is the difference between vi is hashed to () and vim is . I am not much familiar with mintty and I don't wanna guess about what is hashed and what is the is operator in ...
Sahil Rajput's user avatar
1 vote
0 answers
111 views

Mintty: preserve TAB characters while copy-pasting text via Ctrl+Ins followed by Shift-Ins

While using text editors (vi, vim, nano, etc.) after copy-paste operation in Mintty via Ctrl+Ins followed by Shift-Ins the TAB characters are replaced with spaces. Proof: text> text1 //text to ...
pmor's user avatar
  • 6,077
1 vote
1 answer
982 views

Configure mintty for git-bash / msys2, background color etc

Basically re-asking "How do you configure Msys's default size, color, and font?" after 11 years when all the answers are not applicable any more. So, git-bash / msys2 start under mintty. How to ...
xpt's user avatar
  • 22.5k
1 vote
2 answers
282 views

How to enable blinking on mintty (Cygwin Terminal) on Windows 10

I read that mintty supports blinking text but do not know how to set it up so I can display blinking text. eg echo -e "\e[6mMy blinking text\e[0m" I Googled it but nothing comes up.
mck's user avatar
  • 33
1 vote
1 answer
391 views

REVISIT: How to configure the default shell in msys2/mintty?

I have the same question as this prior Stackoverflow post. I got helicoptered into this situation due to git for Windows, not MinGW or cygwin, so the answers in that post don't seem viable. I would ...
cniggeler's user avatar
  • 103
3 votes
2 answers
3k views

How do configure Windows terminal to launch Cygwin (mintty) bash?

I'm trying to set Windows Terminal to launch mintty.exe with the setting bellow. However, when opening a new bash session, it opens mintty in a new window and not inside a Windows Terminal tab. {...
Shimon Shrem's user avatar
2 votes
1 answer
696 views

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 ...
Xunie's user avatar
  • 457
1 vote
0 answers
202 views

How to sync mintty config from WSL2?

I have .dotfiles in my home in WSL and I would like to use ~/.config/mintty/config as the default mintty config. To do the test I have this minimal config file BackgroundColour=4,8,230 Term=xterm-...
nowox's user avatar
  • 28.2k
0 votes
0 answers
635 views

Error in code to put stderr in red in Zsh?

I do have some code to highlight stderr in red, in Zsh; I've copied it from https://github.com/fniessen/shell-leuven#stderr-in-red However, there are strange things happening: the red is sometimes "...
user3341592's user avatar
  • 1,511
5 votes
4 answers
1k views

ConEmu/cygwin newlines don't perform carriage return functionality

I upgraded Cygwin and now Bash is acting weird. Newlines aren't always returning the cursor to the left side of the screen, but sometimes they do. Here is what I'm experiencing: $ echo hello ...
Matt Gregory's user avatar
  • 8,512
1 vote
1 answer
473 views

Could Git correctly display ISO Latin 1 accents in a UTF-8 terminal?

Fork from Don't display ^M (carriage return) in git grep output In my MinTTY (Cygwin on Windows), git grep display weird chars instead of accents: Upon verification, it seems that the filetype ...
user3341592's user avatar
  • 1,511
3 votes
1 answer
325 views

Opening wsltty in a directory

If in Windows 10 I type wsl, ubuntu or cmd in the address bar of a directory, the relevant console is opened in that directory; is there a way to open the same way mintty/wsltty? I tried putting a ...
Mauro's user avatar
  • 135
0 votes
1 answer
305 views

display accented characters on mintty (cygwin) console?

in a nutshell, i would like to be able to type and display characters from iso-8859-1 on my cygwin mintty. unfortunately i haven't figured out how to do this. my locale : $ locale LANG=C.ISO-8859-1 ...
david furst's user avatar
1 vote
1 answer
339 views

How can I make msvcrt.getch() behave the same way in mintty as in cmd?

I'm trying to invoke functions on key press in python. When the script is run in Windows command line (cmd.exe), everything works as expected. But usually when I'm on Windows, I use mintty. In mintty, ...
birgersp's user avatar
  • 4,716