Cygwin Windows Is Searching For Mintty Missing

Posted on by admin
Cygwin Windows Is Searching For Mintty Missing Average ratng: 4,4/5 7303 reviews

How to do a text search into a cygwin window buffer ? Is there a way to make the same kind of text seach as in Windows console buffer (right-click > search) ?

(I use mintty)

Philippe BlayoPhilippe Blayo

5 Answers

In mintty, you can do that using the sequence Alt+F3.

More information in the mintty man page

Searching in the text and scrollback buffer

Alt-F3 opens a search bar with an input field for a search string. Matches are highlighted in the scrollback buffer. Enter/Shift+Enter find the next/previous position of the match and scrolls the scrollback buffer accordingly. The appearance of the search bar and the matching highlight colours can be customized.

Beware this sequence is very close to the infamous windows sequence that closes a window. (which uses F4)

Alternatively, you can enable the Ctrl+Shift+H shortcut by going into the options pane of mintty and enabling Ctrl+Shift+letters shortcuts in the Key section of the options.

You access the options pane by right-clicking the mintty icon of the mintty window (upper left corner)

fjardonfjardon

There's no such function currently. The closest alternative is to 'Select All' (followed by 'Copy' if you've disabled copy-on-select), paste into a text editor, and search there.

ak2ak2

You have a few options.

  1. Use cmdteefile, then search in the resulting file afterwards.

  2. Use screenDownload drama kill me heal me subtitle indonesia download. 's copy/scrollback mode.

YaakovYaakov

(Mintty) I'd mucked up an rsync command (wrong direction) so I wanted to track which files had been altered. So I manually selected the Mintty screen output from the bottom with my mouse hold left mouse button and then push to top of the screen and then tediously waited while the screen scrolled forever backwards then when I'd gone back as far as I needed I did a Control-Insert to copy. I then pasted into a text file which I could then search, edit, grep, vim to my hearts content. Don't know if this the only way but it works!

zzapperzzapper

I used emacs editor as buffer. From emacs open shell : C-x shell, then I can do search within buffer as current window.

hDohDo

Not the answer you're looking for? Browse other questions tagged cygwinmintty or ask your own question.

You can run sshd with WSL now and you can loopback connect to it with mintty and ssh (I have the cygwin build of both).

mintty certainly seems to work much better over ssh than native PowerShell as I don't hit this missing feature microsoft/WSL#741 and there are probably a lot more that I haven't yet tested out. Fixing up PS is probably the route Microsoft is going to take so the mintty approach needs to be community driven.

Would love to have 'native' mintty support somehow tied together so that launching mintty would effectively run WSL bash.exe and drop you in the shell without spawning anything extra.

Currently there are 2 extra windows and the loopback ssh server/client setup for this loopback hack to work. One to run Bash on Windows from PowerShell where I start sshd and keep the window open so that WSL doesn't kill sshd and one cygwin related empty console window that opens up with mintty that I couldn't get rid of.

Anyone have any idea what C:Windowssystem32bash.exe actually does and could it be rewritten somehow tied directly into mintty if we can't run it without PS/cmd.