All Questions
441
questions
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 ...
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 ...
-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
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, ...
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. ...
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 ...
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 ...
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 ...
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 ...
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 };
...
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 ...
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 ...
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 ...
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");
...