All Questions
1,151
questions
-1
votes
0
answers
30
views
Linux console not outputing the expected amount of characters [duplicate]
I am trying to fill the entire visable screen, with characters, in this case 0-9.
Yet, when I compile and run it with gcc.
The output of the console is diffrent sized blocks of text.
Yet the ...
0
votes
0
answers
47
views
How do I remove the console window in a C++ application in Visual Studio?
I have a GLFW and OpenGL program in C++ Visual Studio with a window. The console window popping up whenever I run the program is annoying. How do I remove it? I'm on windows but I don't want to make ...
0
votes
1
answer
27
views
C++ console program read and print text with selectable font and style
I'm going to write a C++ console program that can read my input text and print it with selectable font and style (such as loop rolling and one-by-one print). How can I do that? Thanks for your guys ...
0
votes
0
answers
79
views
Strange assertion in WinAPI when calling fclose on console handle
I am developing C++ shared library that is embedded as a plugin into my application using the Unity engine, and, possibly, into Qt applications (also developed by my company).
I want to allocate ...
1
vote
1
answer
97
views
Console attribute output is different when debugging and when running manually
I used the code from this example and changed it because I need to test the character grid.
#include <windows.h>
#include <stdio.h>
void write_symbol_in_color(HANDLE h, SHORT x, SHORT y, ...
0
votes
1
answer
48
views
Qt6 How to clear internal terminal of QtCreator from C++?
Qt6 How to clear internal terminal of QtCreator from C++ without using Qt?
system("cls"); and system("clear"); does not work.Terminal outputs: "TERM environment variable not ...
1
vote
0
answers
95
views
Writing lots of ANSI colored characters to the Console Screen Buffer is Slow
I am developing a 3D Console Application for fun and I have been using the basic Win32 Colors for a while but I wanted to upgrade to full color spectrum using ANSI. I have got color working, but the ...
0
votes
2
answers
70
views
Why CancelIoEx doesn't cancel getline completely and need twice enter to trigger next getline?
Here is a C++ example.
Each 7 seconds, CancelIoEx() is called and user needs to fill in the content twice (by hit Enter key twice) to trigger getline().
I guess something in Windows Console may not be ...
1
vote
1
answer
122
views
How to prevent Powershell from overwriting the output of a c++ program that uses AttachConsole() after it has finished
I am trying to write a c++ program that can be launched by double clicking the executable from e.g. explorer, or alternatively can be called from a commandline such as powershell or cmd.
I want the ...
0
votes
1
answer
81
views
How change wxLogMessage color and font style?
How to change the font and color of the text inside the window. I want to use fixed-width fonts like "Courier New". And in some texts, change the color of the text.
wxLogWindow* w = new ...
0
votes
0
answers
50
views
Is there a way to block MacOS terminal resize sys calls
Is there a way I can block and unblock the system calls that are called when resizing the the MacOS terminal in C++ as it can mess up cin aswell as the read() function?
The issue/feature of resizing a ...
0
votes
2
answers
102
views
Run button in VS code compiles C++ code, but runs it in Debug Console instead of integrated Terminal
I use VS code on Mac OS for programming with C++. Pressing the run triangle button successfully compiles the code and it starts running in the Debug Console automatically. I can't use the Debug ...
0
votes
0
answers
85
views
Console window crashes after resize
I am trying to make the matrix effect using only the Win32 API and the basic C++ libraries, inspired by the cmatrix command in linux.
So far I have succeeded in making it work for a specified screen ...
0
votes
3
answers
93
views
How do I separate a name of something with spaces and numbers from a number in a single line of a file? [duplicate]
I have a file, it looks like this:
Car-in-blue 4
Truck 100 5
Jeep-43 434 6
Machine 123 5
The last digits of a line is an integer number that should be inserted into an int variable. The names ...
0
votes
0
answers
48
views
C++ Postfix Operator Strange Behaviour in BorlandC++ [duplicate]
Overloading problem.
I have tried to overload Postfix++ operator in a class then I saw a strange behaviour whenever I try to do this
cout << oldValue <<" "<< oldValue++;...