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
4
votes
2 answers
Why do special characters in a batch file print as a question mark?
So I was working on a batch file game a while ago, and for some reason it prints a question mark symbol instead of the smiley face symbol (which you get when you press Ctrl+A in a command prompt).
My Program ScreenShot
I have the same problem with…

JoezCodes
- 157
- 2
- 15
4
votes
1 answer
SetConsoleMode returning false when enabling ANSI color under Windows 10
I've recently upgraded one of my PCs from windows 7 pro to windows 10 pro. I'm trying to run some code that I know is working on another windows 10 machine (that was win10 pro from the beginning). In both cases, I'm using Visual Studio Community…

Rook
- 5,734
- 3
- 34
- 43
4
votes
2 answers
pushd in Windows Power Shell and Command Prompt
I have a batch script on my computer called cs.bat. When I enter cs in the command prompt, pushd takes me to a certain directory and leaves me there. In PowerShell, the command does the same thing but then brings me back into the starting…

Sean Letendre
- 2,623
- 3
- 14
- 32
4
votes
2 answers
C# Console Disable Resize
How to achieve programmatically that the console window is not resizable.
I don't want user to change the console window size with their mouse.

Patrik Bak
- 528
- 1
- 7
- 14
4
votes
0 answers
SetCurrentConsoleFontEx doesn't set the font from GetCurrentConsoleFontEx
I call GetCurrentConsoleFontEx and then call SetCurrentConsoleFontEx with the same information. I would have expected that setting the new_font = old_font would have no effect.
Clearly, I was naive.
The exact program is:
#define _WIN32_WINNT…

Weak to Enuma Elish
- 4,622
- 3
- 24
- 36
4
votes
3 answers
Is there a limit on the output of Console Window?
Code:
This program checks if the 2 numbers entered and their sum are divisible by the numbers 2 - 9, and displays the remaining divisible numbers (excluding the one being reviewed).
static void Main(string[] args)
{
for (int i = 2; i < 10; i++)
…

ITSUUUUUH
- 189
- 1
- 3
- 18
4
votes
2 answers
How do I get the arrow keys recognized by Yo on Windows 10?
I'm trying to run a Yo generator on my Windows 10 machine but it doesn't react when I press the arrow keys in order to select an option.
I found this issue on GitHub and tried to change loopback:relation but it didn't work for me.
Maybe there's a…

Wosi
- 41,986
- 17
- 75
- 82
4
votes
1 answer
Gracefully terminate a Boost Asio based Windows console application
I am working on a boost.asio based HTTP server. It is supposed to be stopped externally. We use asio signal handling, and it works well for ctrl-c, but does not handle WM_CLOSE, so there is no straightforward way to gracefully close the application…

DmitryShubin
- 67
- 7
4
votes
4 answers
Inheritance of classes that aren't related in the traditional sense of OOP
I am wondering if I am approaching my project the right way in terms of OOP. My project consists of a windows console application in c#. The point of the application is to take user input, convert it to an sql query and query the connecting database…

john
- 1,057
- 1
- 17
- 28
4
votes
1 answer
Why do I receive each keyboard event twice when using ReadConsoleInput?
Okay, so to start off the topic I want to say that I am relatively new to coding. That being said I apologize if the question is too vague to understand.
The following code is from my first real c++ program I am making for Win32. The function…

Duyve
- 100
- 8
4
votes
1 answer
Thread exiting message in .Net MVC console
I get this message: the thread has exited with code 0 sometimes in the output window in debug mode when running a .net mvc c# application.
The application still works after these messages, it does not crash and there is no reason to crash, any ideas…

davitz38
- 377
- 1
- 2
- 9
4
votes
3 answers
unable to print euro symbol in a "C" program
I am unable to print the euro symbol. The program I am using is below.
I have set the character set to codepage 1250 which has 0x80 standing for the euro symbol.
Program
=======
#include
#include
int main()
{
…

Abhijith Madhav
- 2,748
- 5
- 33
- 44
4
votes
1 answer
Permanent removal of logo in Windows Scripting Host (WSH) scripts
I know two ways to remove the logo permanently. The "official" one:
cscript //Nologo //S
Will save current command line options for current user.
A ftype approach with admin privileges:
ftype wsffile="%SystemRoot%\System32\CScript.exe" //nologo…

antonio
- 10,629
- 13
- 68
- 136
4
votes
1 answer
is there a way to distinguish stderr in console output?
That is display both streams on console but distinguish somehow one from another.
Normally is that I don't know which lines are stderr they are mixed with normal output. If I redirect it to a file then I don't know when in relation to normal output…

rsk82
- 28,217
- 50
- 150
- 240
4
votes
1 answer
HtmlAgilityPack & Windows 8 Metro Apps
I'm trying to get HtmlAgilityPack to work with Windows 8 Metro Apps (Windows Store Apps). I've successfully written out all the code I need in a Windows Console App (C#) and it works perfectly for parsing the HTML I need and returning me the…

Rohan Kapoor
- 55
- 1
- 8