C++ 更改代码块中的默认终端

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13900328/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 17:48:47  来源:igfitidea点击:

Changing default terminal in Codeblocks

c++codeblocks

提问by wirher

Windows cmd does not support ANSI colour codes and there are a lot of better terminals in the internet. I'm new to code::blocks and want to change the default terminal. What I did is:

Windows cmd 不支持 ANSI 颜色代码,互联网上有很多更好的终端。我是 code::blocks 的新手,想更改默认终端。我所做的是:

Settings>Environmentand I just can't change "Terminal to launch console programs" field. How can I do that?

设置>环境,我只是无法更改“启动控制台程序的终端”字段。我怎样才能做到这一点?

回答by nKandel

I think you can't able to change default terminal on Window's Operating System because none other is present there. But if you are using Linux like Ubuntu you can change it's default command window as gnome-terminal --title=$TITLE -xin place of xterm -T $TITLE -eon Settings>Environment>"Terminal to launch console programs"

我认为您无法更改 Window 操作系统上的默认终端,因为那里没有其他终端。但是,如果您使用像 Ubuntu 这样的 Linux,您可以更改它的默认命令窗口,gnome-terminal --title=$TITLE -x以代替xterm -T $TITLE -e设置>环境>“启动控制台程序的终端”

回答by sagar saini

enter image description here1) Open Settings in Code blocks from title bar
2) Choose environment from It
3) there is an option to terminal to launch console program (drop down) to run program from there you can choose whatever terminal you want from there

在此处输入图片说明1) 从标题栏打开代码块中的设置
2) 从中选择环境
3) 终端有一个选项可以启动控制台程序(下拉)以从那里运行程序,您可以从那里选择您想要的任何终端

回答by Shadi

When code blocks opens the Console as usual:

当代码块像往常一样打开控制台时:

  1. Right-click on the very most left of the title bar of the console window.
  2. Choose properties from the pop-up menu.
  3. Change whatever settings of the console window you would like to change.
  1. 右键单击控制台窗口标题栏的最左侧。
  2. 从弹出菜单中选择属性。
  3. 更改您想要更改的控制台窗口的任何设置。

回答by bethm

Right click on the title bar of the console window -> properties -> font/or layout tab.

右键单击控制台窗口的标题栏 -> 属性 -> 字体/或布局选项卡。