Skip to main content

All Questions

Tagged with
0 votes
1 answer
40 views

Python code giving different ouputs for a function call when input taking from the python console or terminal

The following code is generating two different output if executed in console(>>> ) or from a function.py file ($ python3 function.py). 1 def test(): 2 print("I am happy") 3 ...
user26125734's user avatar
0 votes
0 answers
24 views

Git output into a document while keeping font colors?

I am trying to take the output of git log --graph --online --all --decorate and put it into a Word Document or PDF. I want to keep the font colors, for obvious reasons since a git commit tree looks ...
Yugene's user avatar
  • 19
-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 ...
cum-bria's user avatar
0 votes
1 answer
29 views

How to disable non-intended user input in the terminal C#

When i write a infinite loop that doesn't have any behaviour on its body, the user still have the possibility to write text at it, even without calling any input function: Note: I'm using Linux, ...
Marvin Marjan's user avatar
2 votes
0 answers
62 views

Why is Console.readPassword() inserting a line?

I am creating a password manager, and I am using Console.readPassword() to enter passwords without it displaying on the screen. However, I have noticed some interesting behavior of this method. ...
Hhadley's user avatar
  • 119
0 votes
1 answer
36 views

How do I make a terminal command for my compiler?

I tried searching for an answer but I can't seem to find the right 'term' for it, I would go back and forth and type 'how to create your own environment variable' or 'how to create your own path ...
Bax STAR's user avatar
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 ...
Sacha_D's user avatar
  • 90
0 votes
0 answers
13 views

The consoles close

I have a problem with the terminals. In visual studio the terminal stays stuck, after a few seconds of running it does not write or let me write. The same thing happens with PowerShell and the command ...
Bianca Monteleone's user avatar
0 votes
0 answers
106 views

A str, Segment or object with __rich_console__ method is required

I'm trying to use the rich library in Python to create a live updating console application. However, I'm encountering an issue when attempting to use a Console object within a Live context. Here's a ...
Yusuf Dalhatu's user avatar
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
0 votes
1 answer
50 views

Yii2 unable to run console commands

When I'm trying to run yii2 console command - I just get list of commands in response: The following commands are available: - asset Allows you to combine and compress your ...
Regular User's user avatar
0 votes
0 answers
7 views

Console not showing results

Since I've installed Docker, my terminal hasn't been showing anything when I run my codes... it's happening with JavaScript (doesnt read the console.log), with Python (doesnt read the prints). I've ...
unknwDev's user avatar
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 ...
Massimo D'Ambrosio's user avatar
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 ...
LysandrosAn's user avatar
1 vote
2 answers
115 views

Console Background color doesn't reset

Even with Console.ResetColor(); it still doesn't reset after the last line if (Total >= 15) { Console.BackgroundColor = ConsoleColor.Green; Console.WriteLine("You win"); ...
UlisesDev's user avatar

15 30 50 per page
1
2 3 4 5
30