console

How do you configure Msys's default size, color, and font?

。_饼干妹妹 提交于 2020-02-18 04:05:12
问题 I've been exploring use of MSys lately as an alternative, 'nix-like shell for my windows development. However, the default colors and size are driving me crazy. Anyone have any idea as to how I can change the default size, color, and / or font? Honestly, I'd be happy if I could make the default character width/height of the shell larger, but the others would be nice too... Clarification: the msys shell is a separate app from the windows shell - the normal 'right-click-upper-left -> properties

How do you configure Msys's default size, color, and font?

大憨熊 提交于 2020-02-18 04:04:11
问题 I've been exploring use of MSys lately as an alternative, 'nix-like shell for my windows development. However, the default colors and size are driving me crazy. Anyone have any idea as to how I can change the default size, color, and / or font? Honestly, I'd be happy if I could make the default character width/height of the shell larger, but the others would be nice too... Clarification: the msys shell is a separate app from the windows shell - the normal 'right-click-upper-left -> properties

How do you configure Msys's default size, color, and font?

一笑奈何 提交于 2020-02-18 04:02:32
问题 I've been exploring use of MSys lately as an alternative, 'nix-like shell for my windows development. However, the default colors and size are driving me crazy. Anyone have any idea as to how I can change the default size, color, and / or font? Honestly, I'd be happy if I could make the default character width/height of the shell larger, but the others would be nice too... Clarification: the msys shell is a separate app from the windows shell - the normal 'right-click-upper-left -> properties

How do you configure Msys's default size, color, and font?

会有一股神秘感。 提交于 2020-02-18 04:01:19
问题 I've been exploring use of MSys lately as an alternative, 'nix-like shell for my windows development. However, the default colors and size are driving me crazy. Anyone have any idea as to how I can change the default size, color, and / or font? Honestly, I'd be happy if I could make the default character width/height of the shell larger, but the others would be nice too... Clarification: the msys shell is a separate app from the windows shell - the normal 'right-click-upper-left -> properties

How to check with PHP if the script is being run from the console or browser request?

不羁岁月 提交于 2020-02-17 06:58:25
问题 I tried things like $_ENV['CLIENTNAME'] == 'Console' but that seems to work on only certain OS's (worked in windows, not linux). I tried !empty($_ENV['SHELL']) but that doesn't work always either... Is there a way to check this that will work in all OS's/environments? 回答1: Use php_sapi_name() Returns a lowercase string that describes the type of interface (the Server API, SAPI) that PHP is using. For example, in CLI PHP this string will be "cli" whereas with Apache it may have several

How to check with PHP if the script is being run from the console or browser request?

不问归期 提交于 2020-02-17 06:58:08
问题 I tried things like $_ENV['CLIENTNAME'] == 'Console' but that seems to work on only certain OS's (worked in windows, not linux). I tried !empty($_ENV['SHELL']) but that doesn't work always either... Is there a way to check this that will work in all OS's/environments? 回答1: Use php_sapi_name() Returns a lowercase string that describes the type of interface (the Server API, SAPI) that PHP is using. For example, in CLI PHP this string will be "cli" whereas with Apache it may have several

How to check with PHP if the script is being run from the console or browser request?

一曲冷凌霜 提交于 2020-02-17 06:58:07
问题 I tried things like $_ENV['CLIENTNAME'] == 'Console' but that seems to work on only certain OS's (worked in windows, not linux). I tried !empty($_ENV['SHELL']) but that doesn't work always either... Is there a way to check this that will work in all OS's/environments? 回答1: Use php_sapi_name() Returns a lowercase string that describes the type of interface (the Server API, SAPI) that PHP is using. For example, in CLI PHP this string will be "cli" whereas with Apache it may have several

How to execute console or GUI input as if it was actual Java code?

五迷三道 提交于 2020-02-15 09:48:48
问题 I want to be able to input java commands/code to execute during run-time (during the execution of a "persistent" program) in the same way, or as close as possible, to the same code would be executed if it was present on the source-code for the program (programmed as part of the software), using a GUI element, like jTextArea. The following StackOverflow questions seem to be related, but, along with they'r answers, don't seem to be what i'm looking for. How To Get Input From Console Class In

C# Named Pipes without issuing commands from the Console?

拜拜、爱过 提交于 2020-02-07 05:13:25
问题 I am using Named Pipes to communicate with a process. I have been able to make it work with the following code. (Original code found here : via archive.org ) class ProgramPipeTest { public void ThreadSenderStartClient(object obj) { // Ensure that we only start the client after the server has created the pipe ManualResetEvent SyncClientServer = (ManualResetEvent)obj; using (NamedPipeClientStream pipeStream = new NamedPipeClientStream(".","ToSrvPipe",PipeDirection.Out,PipeOptions.None)) { //

Cannot print non-English text to the Console window

拜拜、爱过 提交于 2020-02-05 11:14:50
问题 int main() { wcout << L"Русский текст" << endl; wprintf(L"Русский текст\n"); return 0; } This simple program doesn't print anything to the Console window (not even new lines). VC++ 2010 Console Application project. What is wrong? 回答1: According to links pointed to in this blog you need to change the font of the console and also this line: _setmode(_fileno(stdout), _O_U16TEXT); 来源: https://stackoverflow.com/questions/20729870/cannot-print-non-english-text-to-the-console-window