Questions tagged [windows-console]

Windows character mode applications using the functions provided by the console I/O functions. This tag should be used by questions about the console functions, structures and winevents, which support character mode applications.

614 questions
22
votes
9 answers

Why does termcolor output control characters instead of colored text in the Windows console?

I just installed termcolor for Python 2.7 on Windows. When I try to print colored text, I get the color codes instead. from termcolor import colored print colored('Text text text', 'red') Here is the result: I obtain the same results on Far…
user3170921
  • 383
  • 1
  • 2
  • 9
21
votes
1 answer

Printing up a line in java console (reverse of '\n')

Foreword I've seen some questions related to this in other languages and done quite some research on this. First, before we begin going down the rabbit hole, I must describe why I'm doing this. I'm pretty printing a binary tree and I found a way to…
Redacted
  • 613
  • 6
  • 23
21
votes
6 answers

Weird control characters from Gradle in Windows 10

In the console I get "funky" output from Gradle when run from CMD since switching to Windows 10. [0K [0K [2A[1m<==-----------> 18% EXECUTING [9s][m[34D[1B[1m> :compileScala[m[15D[1B[2A[1m<==-----------> 18% EXECUTING…
pal
  • 942
  • 1
  • 9
  • 19
19
votes
9 answers

How can I stop webpack dev server from windows console?

I run webpack-dev-server from windows console with the command: webpack-dev-server --content-base ./build --inline --hot after this I see message webpack: bundle is now VALID. and I can't type anything there. But if I change something in…
Rajab Shakirov
  • 7,265
  • 7
  • 28
  • 42
19
votes
3 answers

Multiple consoles for a single application C++

Is it possible to create two console windows (one being the main) and the secondary being a pop-up like a message box in Windows Forms? I only want the secondary console window to hold IDs (that will be hard coded into the application) So the user…
Tom C
  • 804
  • 2
  • 11
  • 24
18
votes
4 answers

git help in Windows command prompt

The git help command on Windows (msysgit distribution) spawns web browser each time I run it. I tried git help -m which reports "No manual entry for ..." and git help -i which says "info: Terminal type 'msys' is not smart enough to run Info." The…
the-happy-hippo
  • 1,203
  • 1
  • 9
  • 13
17
votes
7 answers

How to start 2 programs simultaneously in windows command prompt

I am using Windows 7 64bit Here is the code snippet I am using to start @echo off call "C:\Program Files (x86)\LOLReplay\LOLRecorder.exe" call "G:\League of Legends\lol.launcher.exe" exit But unless I close LOLRecorder.exe it won't start my…
footy
  • 5,803
  • 13
  • 48
  • 96
17
votes
5 answers

keep command line window open when running scheduled task executing batch file

I would like to have the console window kept open when running a scheduled task which executes a batch file. If I run it manually meaning execute the batch file the window stays open but through task scheduler it doesn't open but I can see the task…
vbNewbie
  • 3,291
  • 15
  • 71
  • 155
17
votes
6 answers

C++ Executing CMD Commands

I'm having a serious problem here. I need to execute a CMD command line via C++ without the console window displaying. Therefore I cannot use system(cmd), since the window will display. I have tried winExec(cmd, SW_HIDE), but this does not work…
JP29
  • 633
  • 4
  • 13
  • 25
13
votes
3 answers

How can I get the mouse position in a console program?

How can I get the mouse click position in C++ in a Windows console program? (A variable that returns the position of the mouse when clicked) I want to draw a menu with simple text commands, so when someone clicks, the game will register it and know…
someguy
  • 443
  • 3
  • 8
  • 13
13
votes
6 answers

How to avoid console window with .pyw file containing os.system call?

If I save my code files as .pyw, no console window appears - which is what I want - but if the code includes a call to os.system, I still get a pesky console window. I assume it's caused by the call to os.system. Is there a way to execute other…
twneale
  • 2,836
  • 4
  • 29
  • 34
12
votes
2 answers

How can I get Mocha's Unicode output to display properly in a Windows console?

When I run Mocha, it tries to show a check mark or an X for a passing or a failing test run, respectively. I've seen great-looking screenshots of Mocha's output. But those screenshots were all taken on Macs or Linux. In a console window on Windows,…
Joe White
  • 94,807
  • 60
  • 220
  • 330
12
votes
4 answers

Color console output with C++ in Windows

Is there a way to output colored text to the console? I am using Visual Studio 2010, and only need the code to work in Windows. I have been unsuccessful in finding anything except the windows COLOR command, but that changed the color for the entire…
Rakosman
  • 183
  • 1
  • 2
  • 10
11
votes
2 answers

Is it possible to fake windows console api?

I've written a ssh server in c# and I thought it'd be neat to hook up powershell as a shell. I've tried 2 methods to get this to work properly but both are far from perfect. Here's what I've tried: Launch powershell.exe and redirect it's…
Captain Coder
  • 798
  • 5
  • 12
11
votes
1 answer

How to determine whether a C/C++ compiler is installed on Windows?

I would like to determine whether there is already a compiler installed. Do you know a command on Windows which I could use in the console to do that?
Jesus Peralta
  • 661
  • 1
  • 8
  • 18
1
2
3
40 41