14,120 questions
3
votes
3
answers
55
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
34
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
55
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
68
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
61
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
28
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
45
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
112
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
133
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 ...
3
votes
1
answer
234
views
How to add Unicode emoji to python script in IntelliJ
I have a script which I have created couple of months ago with an older version of Intellij + Python plugin. I had to migrate to new windows and also new IntelliJ
Currently I am using :
IntelliJ IDEA ...
1
vote
1
answer
275
views
Configure IntelliJ to generate Java 25+ code using IO rather than System.out/System.in
Java 25 gained the convenience class IO for simpler access to the console, with print, println, & readln methods. See JEP 512: Compact Source Files and Instance Main Methods for details.
In my ...
0
votes
1
answer
118
views
git commit message as variable in linux [duplicate]
I am trying in my linux (Xubuntu) console to make the git commit message in my chain of commands a variable so I can more easily execute my chain of commands.
Instead of this where I habe to edit ...