使用mintty(

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文件。

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来启动它。

Here’s what the default Mintty window looks like:

这是默认的Mintty窗口的样子:

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和+或–在任何时间点放大或缩小字体。 右键单击标题栏,然后选择“选项”。

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.

我要做的第一件事是将窗口透明度和“外观”选项卡中的光标更改为我更熟悉的内容。 完成后,转到“文本”选项卡。

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当前使用的字体不同的名称。 如果显示器显示的锯齿有点太锯齿,您也可以使用字体平滑处理。

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用户经常喜欢的东西。 最后,单击“窗口”。

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配置的样子。

(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(

使用mintty(_如何使用Mintty改善Cygwin控制台相关推荐

  1. 数据分析 绩效_如何在绩效改善中使用数据分析

    数据分析 绩效 Imagine you need to do a bank transaction, but the website is so slow. The page takes so muc ...

  2. 用户体验数据分析 书单_如何使用数据改善用户体验设计

    用户体验数据分析 书单 In the current age of technology, if an entrepreneur comes up with a grand idea, chances ...

  3. ios web应用程序_使用ios 13改善应用程序的可访问性

    ios web应用程序 I know, iOS 13 has been with us for quite some time now, WWDC 2020 is just around the co ...

  4. google +按钮_如何禁用或改善Google的Google+集成

    google +按钮 If you've used Google lately, you've probably seen Google+ taking over Google's search re ...

  5. 确保河道环境_开展河道整治 改善生态环境

    开展河道整治 改善生态环境 发布时间:2020-03-30 17:13 来源:中国报道 "通过把汝河的水引到俺村,麦田里灌溉充足了,环境也变得越来越好,俺住着也舒心!"李庄乡尚王村 ...

  6. python视频延迟严重_【Python】改善 VideoCapture 的影像延迟

    许多的范例程序大多仅介绍该如何用 VideoCapture 撷取摄影机的画面,却没有充分说明其隐含的问题. 以下示范一个最基本的影像撷取程序. # -*- coding: utf-8 -*- impo ...

  7. css 倒三角_【译】改善 CSS 的 10 个最佳实践

    CSS 看起来是一种非常直接且不易犯错的语言.只需要添加规则以对网站进行样式设置就可以了,对吗?对于只需要几个 CSS 文件的小型站点,可能是这种情况.但是在大型程序中,这样可能会使样式迅速失控.如何 ...

  8. 开发人员安全行为规则_为开发人员改善生活的7条简单规则

    开发人员安全行为规则 As people, we have a superpower; it is the power of perception. As the famous saying goes ...

  9. junit注释_通过此注释改善您的JUnit体验

    junit注释 JUnit可能是所有Java项目中90%的一部分. 令人兴奋的是,我们很快将拥有支持Java 8的JUnit 5 . 我们最近在博客上发表了一项改进 . 回到JUnit 4领域,有一个 ...

最新文章

  1. 使用TypeScript映射和条件类型使React组件更出色
  2. case 关键字后面的的值有什么要求吗?
  3. 函数atof,atoi,atol,strtod,strtol,strtoul 描述
  4. Socket_send函数和recv函数详解
  5. 三菱四节传送带控制梯形图_一文讲透FX5U PLC程序控制指令及步进梯形图编程
  6. pcf8523_PCF上的Spring Cloud合同和Spring Cloud Services
  7. linux 关闭桌面环境,Ubuntu 14.04上的Cinnamon桌面环境PPA被关闭
  8. English trip EM2-LP-3A Gifts Teacher:Patrick
  9. HTML+CSS制作炫彩的数字时钟
  10. 浅谈在基本数据包装类中使用'=='与equals的区别
  11. 【datamining】OLTP,OLAP,维度数据库,事实表,维度表、星形和雪花模式、数据立方体、概念分层...
  12. 使用Python采集淘宝类目数据并进行数据分析
  13. 英语学习/词典app行业top5简要分析
  14. 微信开发之微信jssdk录音功能开发
  15. BUUCTF--[GUET-CTF2019]number_game
  16. linux幻灯片制作软件,Marp(代码制作幻灯片软件)
  17. Unity 图片滑动
  18. [黑苹果]炫龙毁灭者DC显卡无解
  19. 解决如何获取R的帮助文档
  20. 你的软件也能挣钱 共享软件走向国际指南

热门文章

  1. Shell脚本中函数返回值的用法笔记
  2. 带wiringPi库的交叉编译
  3. 60度斜坡怎么计算_【测绘】南方CASS土方计算方法—方格网法
  4. python爬虫面试遇到的问题
  5. 运用xlib进行事件响应(X11 API)的小例子
  6. 我的第一次——网站备案
  7. Android社会化分享详解
  8. 一个简单的WebService服务
  9. Chrome DevTools — Network 1
  10. 为什么要选择Hibernate