控制台字体和放大器;通过C#.NET控制台应用程序使用的布局 [英] Control console font & layout used by C# .NET console application

查看:234
本文介绍了控制台字体和放大器;通过C#.NET控制台应用程序使用的布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置窗口(或Visual Studio,或我的应用程序),所以,当我被打从Visual Studio 2010 F5运行控制台应用程序,我可以用我的选择字体的获得,而不是80x25个标准的一个120x50的布局, CMD / DOS窗口

How can I set Windows (or Visual Studio, or my application) so that when I run a console app by hitting F5 from Visual Studio 2010, I can get a 120x50 layout with my choice of font, instead of the 80x25 standard CMD/DOS window?

(甚至更好? - 有谁知道我能得到VS到像Console2或bash,而非cmd.exe运行控制台应用程序)?

(even better - anyone know how I can get VS to run console apps in something like Console2 or bash instead of cmd.exe ?)

推荐答案

运行VS程序正常(CTRL-F5,或F5,或其他),然后从系统菜单(点击图标,窗口的左上角),选择默认值。改变你的设置,只要你喜欢,并保存它们。从那时起,新的窗口应该根据这些设置启动。

Run a program from VS as normal (ctrl-f5, or f5, or whatever) and then from the system menu (click the icon in the upper-left corner of the window), choose "Defaults". Alter your settings as you like, and save them. From then on, new windows should be launched according to those settings.

至于比CMD.EXE以外的运行程序,你应该知道,的cmd.exe不是在所有的窗口有关。该窗口是一个正常的控制台窗口,而cmd.exe的,没有创建它。本着同样的精神,庆典不会参与,因为这是一个命令行shell,而不是一个窗口程序。

As for running your program in something other than "cmd.exe", you should be aware that "cmd.exe" is not involved at all in the window. The window is a normal console window, and "cmd.exe" didn't create it. In the same vein, "bash" wouldn't be involved, because that's a command shell, not a windowing program.

的Cmd.exe和bash(和一大堆其他人,包括4NT,command.com,一切沿着这些线路),都没有开窗的方案,他们不创建窗口。他们是控制台模式的节目,和Windows会自动创建特殊的控制台窗口为他们在运行。视窗知道他们在控制台模式的程序,因为有一个在.exe文件的标志(这是所谓的文件格式<一个HREF =http://en.wikipedia.org/wiki/Portable_Executable> PE ),指定它是什么类型的应用程序。

Cmd.exe and bash (and a whole host of others, including 4nt, command.com, and everything along those lines) are not windowing programs, and they don't create windows. They're console-mode programs, and Windows automatically creates special "console" windows for them to run in. Windows knows they're console-mode programs because there's a flag in the .exe file (which is a file format called PE) that specifies what type of application it is.

Console2是托管控制台应用程序,并在理论上程序可以使用,如果Console2可以启动它,并在同一时间的外部程序。在项目的属性,调试选项卡下,将启动操作选项为启动外部程序,并在命令行中,将启动Console2和程序一起类型

Console2 is a program that hosts console applications, and in theory could be used, if Console2 allows you to start it and an external program at the same time. In your project properties, under the "Debug" tab, change the "Start Action" option to "Start external program:" and type in the command line that will start Console2 and your program together.

这篇关于控制台字体和放大器;通过C#.NET控制台应用程序使用的布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆