使用mintty(_如何使用Mintty改善Cygwin控制臺

使用mintty(

使用mintty(

banner

Cygwin’s great for getting some Linux command-line goodness in Windows, but using the Windows Shell to access it kills some of that magic. Using Mintty and a few other methods, you can make the experience much more luxurious.

Cygwin非常適合在Windows中獲得Linux命令行優勢,但是使用Windows Shell進行訪問可以消除這種魔力。 使用Mintty和其他一些方法,您可以使體驗更加豪華。

Windows Shell限制 (Windows Shell Limitations)

We’ve already shown you how to install and use Cygwin so you can use Windows and not have to miss out on that command-line goodness. For a lot of people, however, the excitement of running bash in Windows is severely hampered by the fact that Cygwin uses the Command Prompt shell to get things done. Here are some of the more common problems and complaints with this setup:

我們已經向您展示了如何安裝和使用Cygwin,以便您可以使用Windows,而不必錯過命令行的優點。 但是,對于許多人來說,由于Cygwin使用Command Prompt shell完成任務,因此嚴重阻礙了Windows中運行bash的興奮性。 以下是此設置的一些較常見的問題和不滿意之處:

  • Resizing the window horizontally doesn’t work properly

    水平調整窗口大小無法正常工作
  • Can’t efficiently change font faces or sizes on-the-fly.

    無法即時有效地更改字體或大小。
  • Scrolling via the keyboard doesn’t work.

    通過鍵盤滾動不起作用。
  • Selecting text over multiple lines doesn’t work.

    選擇多行文本不起作用。
  • With some configurations, selecting text at all doesn’t work.

    對于某些配置,根本無法選擇文本。
  • It’s all sorts of ugly compared to what Linux terminals provide.

    與Linux終端所提供的相比,這真是丑陋。

A useful tool that’s a chore to utilize doesn’t really take me very far. How about you?

一件有用的有用工具并不能使我走得太遠。 你呢?

Mintty節省了一天 (Mintty Saves the Day)

Mintty is a great alternative shell for Cygwin that provides a host of useful features and alleviates the above problems. If you use MSYS/MinGW instead of Cygwin, Mintty works beautifully with that, too.

Mintty是Cygwin的絕佳替代外殼,它提供了許多有用的功能并緩解了上述問題。 如果您使用MSYS / MinGW而不是Cygwin,那么Mintty也可以很好地工作。

You can install Mintty by grabbing it from the project’s download page (make sure you get the proper version for your setup!), or you can just run Cygwin’s Setup.exe file again.

您可以通過從項目的下載頁面獲取Mintty來安裝Mintty(請確保您獲取的安裝版本正確!),也可以再次運行Cygwin的Setup.exe文件。

sshot-1

At the Select Packages screen, look under “Shells” and find Mintty. Click where it says “Skip” and hit the Next button. Once you’ve finished installing it, you should be able to go to Start > All Programs > Cygwin > mintty to launch it.

在“選擇軟件包”屏幕上,在“外殼”下查找并找到Mintty。 單擊顯示“跳過”的位置,然后單擊“下一步”按鈕。 安裝完成后,您應該可以轉到開始>所有程序> Cygwin> mintty來啟動它。

sshot-2

Here’s what the default Mintty window looks like:

這是默認的Mintty窗口的樣子:

sshot-3

It’s a little vanilla, but you’ll notice the resizing works properly and the font is at least a little better. You can hit Ctrl and + or – to make the font bigger or smaller at any point in time. Right-click the Title Bar and choose Options…

這有點香草,但是您會注意到調整大小的工作正常,并且字體至少好一點。 您可以按Ctrl和+或–在任何時間點放大或縮小字體。 右鍵單擊標題欄,然后選擇“選項”。

sshot-4

First thing I did was change the window transparency and the cursor in the Looks tab to something I’m more familiar with. Head over to the Text tab when you’re done that.

我要做的第一件事是將窗口透明度和“外觀”選項卡中的光標更改為我更熟悉的內容。 完成后,轉到“文本”選項卡。

sshot-5

You can change the default font, of course, but also the Locale and Character Set to something different from what Windows is using right now. You can also play with font smoothing if your monitor shows it a little too jaggedly.

當然,您可以更改默認字體,但也可以將“區域設置”和“字符集”更改為與Windows當前使用的字體不同的名稱。 如果顯示器顯示的鋸齒有點太鋸齒,您也可以使用字體平滑處理。

sshot-6

Under the Mouse options, you’ll be able to change your mouse interaction settings, such as copying and pasting. You can also easily make the mouse place the command-line cursor, something that vim users often seem to like. Lastly, click on Window.

在“鼠標”選項下,您將能夠更改鼠標交互設置,例如復制和粘貼。 您也可以輕松地使鼠標放在命令行光標上,這是vim用戶經常喜歡的東西。 最后,單擊“窗口”。

sshot-7

Here, you can change the default terminal size, the scrollback buffer size, and choose a modifier for scrolling with the arrow keys. By default, Shift+Up/Down will scroll through the buffer in the window. Now here’s what my modified Mintty configuration looks like.

在這里,您可以更改默認終端大小,回滾緩沖區大小,并選擇修改器以使用箭頭鍵滾動。 默認情況下,Shift +上/下將滾動瀏覽窗口中的緩沖區。 現在,這就是我修改后的Mintty配置的樣子。

sshot-8

(Click on the above image to see a larger version.)

(單擊上圖查看大圖。)

其他方法(適用于膩子愛好者) (Other Methods (for PuTTY-Lovers))

Mintty is great, but others may not like it so much. We showed you how to install an SSH server on Cygwin, and many people use PuTTY or KiTTY to connect to Cygwin that way. However, if you don’t want to set up SSH access, there’s an easier way.

Mintty很棒,但是其他人可能不太喜歡它。 我們向您展示了如何在Cygwin上安裝SSH服務器,許多人使用PuTTY或KiTTY以這種方式連接到Cygwin。 但是,如果您不想設置SSH訪問,則有一種更簡單的方法。

PuTTYcyg is a patched version of PuTTY that is able to connect to native Cygwin installations. There’s only one hitch: PuTTY was recently updated to version 0.61, adding support for Windows 7’s jump lists, Aero-resizing, and non-fixed-width fonts. PuTTYcyg hasn’t been updated yet, so you’ll have to choose between Cygwin support and Windows 7-compatibility. I haven’t been able to find the patch itself, so I haven’t tried adding support to the latest version of PuTTY. If you have, please leave a line in the comments.

PuTTYcyg是PuTTY的修補版本,能夠連接到本機Cygwin安裝。 只有一個障礙:PuTTY最近更新到版本0.61,增加了對Windows 7跳轉列表,Aero調整大小和非固定寬度字體的支持。 PuTTYcyg尚未更新,因此您必須在Cygwin支持和Windows 7兼容性之間進行選擇。 我還沒有找到補丁本身,所以沒有嘗試為最新版本的PuTTY添加支持。 如果有,請在評論中保留一行。

Personally, I prefer KiTTY over PuTTY because of it’s more customizable and was updated more often over the past 4-years. There’s a KiTTY-compatible PuTTYcfg patch which adds this functionality for others like me. To be honest, though, since I started using Mintty with Cygwin I haven’t touched KiTTY in weeks.

就個人而言,我更喜歡KiTTY,而不是PuTTY,因為它具有更高的可定制性,并且在過去4年中更新的頻率更高。 有一個與KiTTY兼容的PuTTYcfg補丁程序,為我這樣的其他人添加了此功能。 不過,老實說,自從我開始在Cygwin中使用Mintty以來,我已經有幾周沒接觸過KiTTY了。

Lastly, if you’re looking for something that supports Cygwin as well as the Windows Command Prompt, you might be interested in Console. It’s a console replacement that allows tabbing of multiple types of shells as well as adding transparency and on-the-fly font changes.

最后,如果您正在尋找支持Cygwin以及Windows Command Prompt的產品,那么您可能會對Console感興趣。 它是控制臺的替代品,它允許制表符多種類型的外殼,以及增加透明度和即時字體更改。



Do you have a preferred Cygwin shell? Do you have an alternative to Cygwin? Know of a patch that works with PuTTY 0.61? Let us know below!

您有首選的Cygwin外殼嗎? 您有Cygwin的替代產品嗎? 知道適用于PuTTY 0.61的補丁程序嗎? 讓我們在下面知道!

翻譯自: https://www.howtogeek.com/68511/how-to-improve-your-cygwin-experience-with-mintty/

使用mintty(

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/279036.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/279036.shtml
英文地址,請注明出處:http://en.pswp.cn/news/279036.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

18.phpmyadmin 4.8.1 遠程文件包含漏洞(CVE-2018-12613)

phpmyadmin 4.8.1 遠程文件包含漏洞(CVE-2018-12613) phpMyAdmin是一套開源的、基于Web的MySQL數據庫管理工具。其index.php中存在一處文件包含邏輯, 通過二次編碼即可繞過檢查,造成遠程文件包含漏洞。 受影響版本: phpMyAdmin 4.…

開源php面板,寶塔面板nginx安裝終于搞定了

server{listen 80;server_name lvyou.yssknet.com;index index.php index.html index.htm default.php default.htm default.html;root ***********/public;#SSL-START SSL相關配置,請勿刪除或修改下一行帶注釋的404規則#error_page 404/404.html;#SSL-END#ERROR-PA…

[Erlang 0004] Centos 源代碼編譯 安裝 Erlang

由于最終部署的生產環境是Centos,所以我需要在Centos中安裝Erlang B13R04 ,第一次做這件事情破費周折,主要是對Erlang依賴的庫不熟悉,總是編譯不過;這里梳理一下安裝過程中的細節: Erlang依賴哪些庫&#x…

關于“Python”的核心知識點整理大全38

14.1.1 創建 Button 類 由于Pygame沒有內置創建按鈕的方法,我們創建一個Button類,用于創建帶標簽的實心矩形。 你可以在游戲中使用這些代碼來創建任何按鈕。下面是Button類的第一部分,請將這個類保存為 文件button.py: button.py …

同步您的Google Chrome書簽,主題等

Do you regularly use Google Chrome on multiple computers? Here’s how you can keep almost everything in your browser synced easily in Google Chrome. 您是否經常在多臺計算機上使用Google Chrome? 您可以通過以下方法在Google Chrome瀏覽器中輕松同步瀏…

Python中函數的參數傳遞與可變長參數

轉自旭東的博客原文 Python中函數的參數傳遞與可變長參數 Python中傳遞參數有以下幾種類型: (1)像C一樣的默認缺省函數 (2)根據參數名傳參數 (3)可變長度參數 示例如下: &#xff08…

matlab的plot沒有反應,用plot畫圖沒有反應

本帖最后由 躺著看雨 于 2018-6-7 10:35 編輯0.0854232732222489 -1.47227270375083e-08 17.0844721322814 17.08465464444980.0854232767446789 -1.41282430199396e-08 17.0844728367686 17.08465534893580.0854232802671089 …

轉]MATLAB 與 C 語言的接口

MATLAB 到 C 語言程序的轉換可以由兩種途徑完成,其一是 MATLAB 自己提供的 C 語言翻譯程序 mcc, 另一種是原第 3 方公司 MathTools 開發的 MATCOM。后者出現較早,功能遠比 MATLAB 自己的翻譯程序強大,所以 MathTools 公司已經被 MathWorks 公…

找call寫call_如何將Google Call Widget添加到任何網頁

找call寫callAdding a Google Call Widget to your website or blog allows visitors to contact you using your Google Voice number. The widget provides an easy and cost-effective way to provide live customer support without the customer knowing your real number…

XML與web開發-01- 在頁面顯示和 XML DOM 解析

前言: 關于 xml 特點和基礎知識,可以菜鳥教程進行學習:http://www.runoob.com/xml/xml-tutorial.html 本系列筆記,主要介紹 xml 在 web 開發時需要了解的知識 XML 在頁面顯示數據 XML 指可擴展標記語言(eXtensible Mar…

酷安應用市場php源碼,酷安應用市場 v11.0.3-999 去廣告極限精簡版

酷安,真實有趣的數碼社區。酷安app,國內安卓應用市場客戶端,應用資源豐富,應用開發者水準高,應用無首發Logo,原汁原味上架,得到了安卓用戶群廣泛認可。有人說現在的酷安市場(酷安網)沒有以前那么…

再戰android-語音識別2(修改配置)

可怕的半桶水一直在晃。程序中需要根據用戶的選擇設置語音識別的語言(目前科大訊飛支持英文、普通話、粵語),不想每次要用戶去IatSetting中去改,需要能直接修改IatSetting的設置。之前移植的IatSetting頁面沒有細究,直…

chromebook刷機_如何將網站添加到您的Chromebook架子上

chromebook刷機Bookmarks are great to keep your favorite sites nearby, but they aren’t the fastest option out there. Instead, why not add shortcuts for your favorite websites right on the Chromebook shelf? 書簽可以很好地將您喜歡的網站保留在附近&#xff0c…

php判斷外鏈,php檢查字符串中是否有外鏈的方法

這篇文章主要介紹了php檢查字符串中是否有外鏈的方法,涉及php針對字符串的正則匹配的相關技巧,具有一定參考借鑒價值,需要的朋友可以參考下本文實例講述了php檢查字符串中是否有外鏈的方法。分享給大家供大家參考。具體實現方法如下:/*** is_external_link 檢測字符…

【經驗分享】產品、運營人如何告別重復的數據分析工作?

我是一名互聯網的運營打雜MM,除了每天繁忙的工作,每周、每月的數據匯報也是我頭疼的東東。因為本身我不聰明,數學也不是太好,對數據不那么愛,而且還要做數據分析,對于我這種數據小白分分鐘崩潰。每周、每月…

JVM虛擬機調參

JVM虛擬機調參 一、堆大小設置JVM 中最大堆大小有三方面限制:相關操作系統的數據模型(32-bt還是64-bit)限制;系統的可用虛擬內存限制;系統的可用物理內存限制。32位系統下,一般限制在1.5G~2G;64…

Locktopus鎖定iOS設備上的單個應用程序

If you want to share a cool game on your iOS device but not let everyone read your email, Locktopus offers a simple app-by-app lockdown solution. 如果您想在iOS設備上共享一個很棒的游戲,但又不想讓所有人都閱讀您的電子郵件,那么Locktopus提…

php speedtest,大神教你如何搭建自己的web speedtest站點

導讀speedtest作為一款在線并且可視化的網速測試工具。使用方法簡單,無需下載、安裝多余軟件,只需有瀏覽器即可。那如何搭建一個自己的web speedtest站點呢?項目開源地址:https://github.com/adolfintel/speedtest安裝web,php,git…

MySQL服務器硬件和操作系統調節

1. 擁有足夠的物理內存來把整個InnoDB文件加載到內存中——在內存中訪問文件時的速度要比在硬盤中訪問時快的多。 2. 不惜一切代價避免使用Swap交換分區 – 交換時是從硬盤讀取的,它的速度很慢。 3. 使用電池供電的RAM(注:RAM即隨機存儲器&am…

數據結構小結+模板

\[OI中的數據結構\] \[By\;TYQ\] 線性結構 大部略 單調棧 棧 , 但是push的時候要彈出所有比他小/大的(多用于優化Dp) 單調隊列 隊列 , 同單調棧 樹狀結構 樹狀數組 核心:lowbit(x) (x) & (-x) ...其實lowbit(x) 2^x的最低非0位 PION8012初賽中考了...但只涉及正數... 為什…