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.
Questions tagged [windows-console]
614 questions
-1
votes
2 answers
Why in allocating variable memory, python scripts running in different consoles affect each other?
I use two consoles to run python script. One is cmd console, and another is pycharm console. What surprises me is that, the results seem the two different consoles share the same memory space. The detail is as follow pictures shown. There are four…

Franco
- 123
- 11
-1
votes
1 answer
Unicode Characters to recreate the C64 random maze program
I want to recreate a simple C64 Random Maze using Unicode characters.
https://www.youtube.com/watch?v=m9joBLOZVEo
I can't find good line characters that always produce a consistent, skewed line. / and \ don't work for me, neither do "\u2571" and…

Redwolf
- 540
- 4
- 17
-1
votes
1 answer
Remove space left after console scrollbars in C#
I'm making a console game in C# in Visual Studio and I want to make the game to be in the full console window.
I resized the buffer and window to be the same size, but it looks like the space after the scrollbars remained, which will probably be…

Volper
- 644
- 6
- 14
-1
votes
1 answer
C++ Two threads one for input and one for output
I'm developing a console application and I am stuck with no ideia on how to handle this issue.
My issue is the following:
My application runs two threads (1) that generates output and (2) one that waits for user to write a line on the console. My…

Ricardo Alves
- 1,071
- 18
- 36
-1
votes
2 answers
Console.Clear() stops method execution (IOException is not reached)
I'm having a very weird behaviour from this method:
public T NavigateTo() where T : Page
{
SetPage();
Console.Clear();
CurrentPage.Display();
return CurrentPage as T;
}
From:…

z3nth10n
- 2,341
- 2
- 25
- 49
-1
votes
1 answer
Difference between environment variable value for "ECHO %foo%" versus "%foo%"
What is the difference between
ECHO %foo%
and simply
%foo%
In my case the first prints x and the second prints y, where the "correct" value, the one I want to be returned through Environment.GetEnvironmentVariable("foo") is the ECHOed one, x.
I…

See Sharp
- 379
- 1
- 4
- 11
-1
votes
1 answer
Windows Command Line: execute a .bat file in a new console window
I have 4 DOS batch files:
GoCore1.bat
GoCore2.bat
GoCore3.bat
GoCore4.bat
I would like to launch each bat file in its own console window from a single .bat file (go.bat). Windows 7 is the OS.
Is this possible? If so, what is the syntax to create…

gatorback
- 1,351
- 4
- 19
- 44
-1
votes
1 answer
Python 2 encoding in win 7 console
This question is related to Getting file path with umlauts from command line arguments under win7 using a batch file but has another twist. I installed win_unicode_console. I opened a console window and change the codepage via chcp.com 65001 > nul…

thopy
- 77
- 1
- 8
-1
votes
2 answers
Golang - windows console exits while running go.exe
I installed Go in Windows 10 with the MSI installer. However, when I run go in cmd (or PowerShell) with an argument, such as env, build, install, list, ...
The console window closes (or crashes?) after the go command is run. This prevents me from…

Patrick
- 375
- 3
- 12
-1
votes
2 answers
windows cmd - tasklist /fi "windowtitle eq ...." doesnt work
I have a little problem here and wondered if someone could explain this to me :)
when I type tasklist /V I get all my tasks and also the task I'm looking for:
So my process does have a WINDOWTITLE and its running and seen by tasklist... but when I…

User9132
- 997
- 1
- 8
- 15
-1
votes
2 answers
Opening Windows console for stdin/stdout/stderr for both of win32 and win64 in C
First of all, I'm not a Windows programmer (not even a Windows user), I use cross-compiler on Linux to build also for Win32 and Win64. After digging the Net (and even asking a question here) I've managed to put a code fragment together which can…

LGB Gábor Lénárt
- 337
- 2
- 11
-1
votes
2 answers
Can't center my console window by using the following code
void Initialize_Window(void)
{
RECT rConsole;
GetWindowRect(GetConsoleWindow(), &rConsole);
SetWindowPos(GetConsoleWindow(), NULL, 0, 0, 800, 700, 0);
SetWindowLong(GetConsoleWindow(), GWL_STYLE, GetWindowLong(GetConsoleWindow(),…

marticztn
- 170
- 1
- 9
-1
votes
1 answer
How to print sentence in the position of the mouse cursor in VC++ Win32 application?
I want to print something in the position where the mouse cursor is, so I use POINT cursorPos; GetCursorPos(&cursorPos);
to get the position of mouse cursor.
Then I set the console cursor to the position, and print the mouse coordinates. However the…

Rachel
- 47
- 6
-1
votes
1 answer
How would I write a batch script to either minimise all cmd windows or minimise a window with a given name?
The windows that I am trying to minimise are already running so start /min is not an option.

rowanphilip
- 319
- 5
- 16
-1
votes
3 answers
Reading a value with a timer in C
I am writing a multiplication table program to help my niece learn. I want her to be able to have a set amount of time to answer each question (hence the for loop which acts as a delay). The delay works, as after delay seconds the program outputs…

ThE411
- 33
- 8