Skip to main content

All Questions

Tagged with
0 votes
0 answers
18 views

Writing to `CONOUT$` on Windows for node.js 22

I am trying to fix a node.js package that writes directly to the console (/dev/tty in Unix-likes) in the case of Windows. It's using some internal bindings, sadly, which means it breaks with different ...
Jacob's user avatar
  • 78.5k
1 vote
1 answer
87 views

GetConsoleScreenBufferInfo returning wierd values when called using function

I have a program where I want to print out the size of the terminal window in columns and rows. To do this I want to call this function from int main(): int getConsoleSize(){ ...
Skalmanen's user avatar
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 ...
whs31-'s user avatar
  • 19
0 votes
1 answer
917 views

I am getting an error from Edge Browser's console. How can I solve this

enter image description here Image of Error when I open edge browser console then I am getting the error. error says : [Deprecation] -ms-high-constrast is in the process of being deprecated. Please ...
Shubham Kumar's user avatar
1 vote
1 answer
134 views

How to properly and safely print to stdout/stderr using the Win32 API?

You may say. //#DEFINE UNICODE #include <Windows.h> int main() { HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); LPTSTR msg = TEXT("Hello, World!\n"); WriteConsole(hOut, ...
Schilive's user avatar
  • 265
0 votes
2 answers
81 views

How can you print out different strings in different coordinates?

I have to make a table and I don't want to hard code it. COORD point = { 30, 10 }; SetConsoleCursorPosition(hConsole, point); printf("%s", a); COORD point1 = { 30,12 }; ...
wertik's user avatar
  • 11
3 votes
1 answer
106 views

Unicode not displaying properly in Gradle console

this is my very first question/post on here, because I am officially stuck. I am having difficulty displaying Unicode characters in Java/Gradle console. My project name is 'Blackjack'. An example ...
adanglingpointer's user avatar
-2 votes
1 answer
293 views

how to ignore chromedriver errors from showing up in log (selenium)

I'm using selenium for a scraping script along with a chromedriver service on windows here is how initialised them # Setting up the options options = Options() options.add_argument("--headless=...
drissbri's user avatar
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 ...
Jack Kuo's user avatar
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 ...
Zwamdurkel's user avatar
0 votes
1 answer
99 views

my vscode java version is different from my system java version

hi im having trouble in my vscode when i run my java file when im running the file it awlays shows Error: Could not find or load main class main Caused by: java.lang.ClassNotFoundException: main PS C:\...
Von Lopez's user avatar
1 vote
0 answers
48 views

Redirecting Standard Output to Current Console in Go Using CreateProcessWithTokenW

I'm working with Go and trying to launch a new CMD shell using CreateProcessWithTokenW. My goal is to redirect the standard output to the current console window so that I can run commands from the ...
OhGodWhy's user avatar
  • 185
0 votes
0 answers
21 views

How do I implement cmd's auto-tab-completion to python?

import os import subprocess import tkinter.colorchooser as colorchooser import tkinter as tk import sys import decimal import time <...code...> def execute_command(command): print(command) ...
Pilaral's user avatar
0 votes
1 answer
88 views

Why doesn't system("cls") work for me on windows?

i have been trying to make my screen refresh every second and i don't understand why it doesn't work. The countdown works but i want to show only the last "printf" and remove all the other ...
Rick Mortie's user avatar
0 votes
0 answers
79 views

How to Execute bat file using CreateProcess and Simultaneously Print/Read Its Output in C++?

So I've tried to execute a bat file that install a software for windows. The code works, however it only outputs the once the process is done. Is there a way to synchronize execution and redirecting/...
Ron3545's user avatar
  • 15

15 30 50 per page
1
2 3 4 5
60