使用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.mzph.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初赛中考了...但只涉及正数... 为什…