14,116 questions
1
vote
1
answer
74
views
Clear text using Console.Clear
Whenever I use the "clear" command to delete the previous text and display new text, the console advances several lines, and I have to scroll to see the desired text above. I don't know the ...
0
votes
0
answers
84
views
GetWindowText not properly reading Japanese text, printing to console incorrectly [closed]
Part of a program I'm trying to write needs to read the title of the foreground window using GetWindowText, and then print it to the console using printf. This works fine for English window titles, ...
0
votes
0
answers
38
views
How do I detect keypresses in VB.net console mode (windows) without pausing the program? [duplicate]
In a program I am writing for VB.net console mode in windows, I need to check to see which keys on the keyboard are pressed without waiting.
On other projects I have used Console.Readkey, but I can't ...
3
votes
3
answers
114
views
How to do console colors in bash script
I have a Bash script that prints status headers using ANSI color escape codes. The script runs, the output prints, but instead of seeing colored text, I see the literal escape sequences printed to the ...
Tooling
0
votes
0
replies
39
views
Window Swallower for MS Windows (10, 11) like "devour" lib on X11
I would like to create a C++ CLI and GUI app that should work on MS Windows.
I need the GUI be launched from CLI and if possible it would be great to have the app folded back to CLI.
As an option, I ...
1
vote
0
answers
39
views
Why is my TF2 Map in the Hammer editor not compiling?
I'm on windows 11, using the Hammer editor found in the tf files. I am using a custom texture that I converted to the correct file type. The texture renders fine in the editor. I just need help with ...
0
votes
1
answer
58
views
MSI launched with /q (silent) - is it possible to print a message to the console?
I have an MSI installer (built with WiX), and some users run it in silent mode, for example:
msiexec /i MyApp.msi /q
If the user starts the MSI like this without passing certain required properties (...
1
vote
1
answer
72
views
Windows.System.Profile.HardwareIdentification.GetPackageSpecificToken throws exception
I'm trying to get a hardware id with a .net console app (target framewotk is net8.0-windows10.0.17763.0).
The code is rather trivial, just
var token = Windows.System.Profile.HardwareIdentification....
1
vote
1
answer
75
views
.NET Serilog ReadFrom Configuration doesn't work
Working version:
private static void SetLogging(WebApplicationBuilder builder)
{
Log.Logger = new LoggerConfiguration()
.Enrich.FromLogContext()
.MinimumLevel.Override("...
0
votes
0
answers
31
views
How to debug service worker in phone-installed PWA?
I am having issues with fetch() statements in my service worker in a progressive web app installed on my Android phone (with Chrome). Ordinarily this would be easy to debug by sending messages to ...
0
votes
1
answer
50
views
Filter 'Run' console output in CLion?
I'm working on a program using the CLion IDE, and am running it using the IDE's Run or Debug actions. The program's standard output and error streams are directed to an embedded 'Run' console, ...
0
votes
1
answer
101
views
Is there a better way to continually write strings to console while checking for user input at the same time?
I am programming a console based speed reader. I have an automatic mode, where the console prints all the words — one at a time — and shows each word for a period of time set by the user. While ...
-3
votes
1
answer
122
views
C++Builder 13 Console Window is Truncated [closed]
I've revisited an old console app that generates output of more than 25 lines. Unlike my earlier experiences with C++Builder, the output window using C++Builder 13 truncates to 25 lines. I am ...
-3
votes
1
answer
138
views
Console.ReadLine in a Task causing side effects [duplicate]
I want to loop and ask user if he wants to continue. If no answer for a while, loop anyway.
while (true)
{
Console.WriteLine("\nDo you want to continue? (Type 'no' or 'exit' to break, or wait ...
0
votes
0
answers
65
views
How to make an interactive console version in Java for a simple linear regression model?
I’m trying to create a simple model in Java that predicts marks based on study hours (using a basic linear regression formula).
My goal is to make it interactive — where the user can enter the number ...