有更好的 Windows 控制台窗口吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/60950/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there a better Windows Console Window?
提问by Alan Storm
I find working on the command line in Windows frustrating, primarily because the console window is wretched to use compared to terminal applications on linux and OS X such as "rxvt", "xterm", or "Terminal". Major complaints:
我发现在 Windows 的命令行上工作令人沮丧,主要是因为与 linux 和 OS X 上的终端应用程序(例如“rxvt”、“xterm”或“终端”)相比,控制台窗口使用起来很糟糕。主要投诉:
No standard copy/paste. You have to turn on "mark" mode and it's only available from a multi-level popup triggered by the (small) left hand corner button. Then copy and paste need to be invoked from the same menu
You can't arbitrarily resize the window by dragging, you need to set a preference (back to the multi-level popup) each time you want to resize a window
You can only make the window so big before horizontal scroll bars enter the picture. Horizontal scroll bars suck.
With the cmd.exe shell, you can't navigate to folders with \\netpath notation (UNC?), you need to map a network drive. This sucks when working on multiple machines that are going to have different drives mapped
没有标准的复制/粘贴。您必须打开“标记”模式,它只能从(小)左角按钮触发的多级弹出窗口中使用。然后需要从同一个菜单中调用复制和粘贴
不能通过拖动来任意调整窗口大小,每次要调整窗口大小时都需要设置一个首选项(回到多级弹出)
您只能在水平滚动条进入图片之前将窗口变大。水平滚动条很烂。
使用 cmd.exe shell,您无法使用 \\netpath 符号 (UNC?) 导航到文件夹,您需要映射网络驱动器。在将要映射不同驱动器的多台机器上工作时,这很糟糕
Are there any tricks or applications, (paid or otherwise), that address these issue?
是否有任何技巧或应用程序(付费或其他)可以解决这些问题?
采纳答案by Maximus
Sorry for the self-promotion, I'm the author of another Console Emulator, not mentioned here.
抱歉自我宣传,我是另一个控制台模拟器的作者,这里没有提到。
ConEmuis opensource console emulator with tabs, which represents multiple consoles and simple GUI applications as one customizable GUI window.
ConEmu是一个带有选项卡的开源控制台模拟器,它将多个控制台和简单的 GUI 应用程序表示为一个可定制的 GUI 窗口。
Initially, the program was designed to work with Far Manager(my favorite shell replacement - file and archive management, command history and completion, powerful editor). But ConEmu can be used with any other console application or simple GUI tools (like PuTTY for example). ConEmu is a live project, open to suggestions.
最初,该程序旨在与Far Manager(我最喜欢的 shell 替代品 - 文件和存档管理、命令历史和完成、强大的编辑器)一起使用。但是 ConEmu 可以与任何其他控制台应用程序或简单的 GUI 工具(例如 PuTTY)一起使用。ConEmu 是一个实时项目,对建议持开放态度。
A brief excerpt from the long list of options:
一长串选项的简短摘录:
- Latest versions of ConEmu may set up itself as default terminal for Windows
- Use any font installed in the system, or copied to a folder of the program (ttf, otf, fon, bdf)
- Run selected tabs as Administrator (Vista+) or as selected user
- Windows 7 Jump lists and Progress on taskbar
- Integration with DosBox(useful in 64bit systems to run DOS applications)
- Smooth resize, maximized and fullscreen window modes
- Scrollbar initially hidden, may be revealed by mouseover or checkbox in settings
- Optional settings (e.g. pallette) for selected applications
- User friendly text and block selection (from keyboard or mouse), copy, paste, text search in console
- ANSI X3.64 and Xterm 256 color
- 最新版本的 ConEmu 可能会将自身设置为 Windows 的默认终端
- 使用系统中安装的任何字体,或复制到程序的文件夹中(ttf、otf、fon、bdf)
- 以管理员 (Vista+) 或所选用户身份运行所选选项卡
- Windows 7 任务栏上的跳转列表和进度
- 与DosBox集成(在 64 位系统中用于运行 DOS 应用程序)
- 平滑调整大小、最大化和全屏窗口模式
- 滚动条最初隐藏,可能会通过鼠标悬停或设置中的复选框显示
- 选定应用程序的可选设置(例如调色板)
- 用户友好的文本和块选择(通过键盘或鼠标)、复制、粘贴、控制台中的文本搜索
- ANSI X3.64 和 Xterm 256 颜色
Far Manager users will acquire shell style drag-n-drop, thumbnails and tiles in panles, tabs for editors and viewers, true colors and font styles (italic/bold/underline).
Far Manager 用户将获得外壳风格的拖放、缩略图和面板中的图块、编辑器和查看器的选项卡、真实颜色和字体样式(斜体/粗体/下划线)。
PS. Far Manager supports UNC paths (\\server\share\...)
附注。Far Manager 支持 UNC 路径 (\\server\share\...)
回答by Greg Hewgill
Try Console 2.
尝试控制台 2。
Console is a Windows console window enhancement.Console features include: multiple tabs, text editor-like text selection, different background types, alpha and color-key transparency, configurable font, different window styles
控制台是 Windows 控制台窗口的增强。控制台功能包括:多个选项卡、类似文本编辑器的文本选择、不同的背景类型、alpha 和颜色键透明度、可配置字体、不同的窗口样式
回答by Apocalisp
Take Command. This one has been around for a long time (formerly 4DOS). I used this on Windows NT 3.5 (!) and loved it.
接受命令。这个已经存在很长时间了(以前是 4DOS)。我在 Windows NT 3.5 (!) 上使用了它并且很喜欢它。
Cygwinlets you run X on Windows, so you can fire up xterm
or whatever terminal app you prefer, and also get the benefit of using a UNIX shell.
Cygwin允许您在 Windows 上运行 X,因此您可以启动xterm
或任何您喜欢的终端应用程序,并获得使用 UNIX shell 的好处。
回答by Adam Mitz
- Turn on quickedit mode (but selection is still rectangular instead of line-wrapped)
- Resizing by dragging works for me
- You can change the buffer size which will impact when scrollbars appear
- pushd \\server\share
- 打开快速编辑模式(但选择仍然是矩形而不是换行)
- 通过拖动调整大小对我有用
- 您可以更改会在滚动条出现时产生影响的缓冲区大小
- pushd \\服务器\共享
Even with those, cmd.exe isn't a great console. See all the other replies and the earlier stackoverflow questions on the same subject. The "Console" project from sourceforge looks pretty good.
即使有这些,cmd.exe 也不是一个很好的控制台。查看关于同一主题的所有其他回复和较早的 stackoverflow 问题。sourceforge 的“控制台”项目看起来不错。
回答by jfs
From documentation:
从文档:
NOTE: Console is NOT a shell. Therefore, it does not implement shell features like command-line completion, syntax coloring, command history, etc.
Console is simply a nice-looking front end for a shell of your choice (cmd.exe, 4NT, bash, etc.) Other command-line utilities can also be used as 'shells' by Console.
注意:控制台不是外壳。因此,它没有实现命令行完成、语法着色、命令历史等 shell 功能。
控制台只是您选择的外壳程序(cmd.exe、4NT、bash 等)的漂亮前端。其他命令行实用程序也可以用作控制台的“外壳程序”。
As a programming shell one can use ipython.
作为一个编程外壳,可以使用ipython。
回答by ckarras
I've had these issues too for years on Windows, but I recently found this project: Console
我在 Windows 上也有这些问题多年,但我最近发现了这个项目: 控制台
It still requires "mark mode" for copy/paste, but at least it's available from a right-click contextual menu (so you don't need to move the mouse to the top left and then move it again to the text you want to select)
它仍然需要“标记模式”进行复制/粘贴,但至少可以从右键单击上下文菜单中使用它(因此您无需将鼠标移动到左上角然后再次将其移动到您想要的文本选择)
UNC paths are not supported by cmd.exe but they are supported by PowerShell. (Console can be configured to use any shell, including cmd.exe and PowerShell)
cmd.exe 不支持 UNC 路径,但 PowerShell 支持它们。(控制台可以配置为使用任何 shell,包括 cmd.exe 和 PowerShell)
回答by Anish Gupta
I personally use Mintty. Therefore I use Cygwin (because thats the only shell it supports, as far as I know).
我个人使用 Mintty。因此我使用 Cygwin(因为据我所知,这是它唯一支持的 shell)。
BTW There is another question: better command for Windows?I found.
BTW 还有一个问题:更好的 Windows 命令?我发现。
回答by O?uz ?elikdemir
回答by Priya
Use Gow.exe.. This will make your DOS-Promptas Linux terminal...
使用Gow.exe.. 这将使您的DOS-Prompt成为Linux 终端...
else
别的
Use ZOC.exe...its Trial-period terminal...
使用ZOC.exe...其试用期终端...
else
别的
Install Git.. it gives a bash-console from where u can use unix commands, partially
安装Git.. 它提供了一个 bash 控制台,您可以在其中使用 unix 命令,部分