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
52 views

Get current console output(sys.stdin) in python

I want to get the current console output(sys.stdin) of my program in python. I found the answer for sys.stdout, however, I found out for the output caused by input() function it goes to sys.stdin ...
Kisaac's user avatar
  • 1
1 vote
0 answers
56 views

Clear all data flushed to stdout in C

My program needs to dynamically update what was outputted to the console. How can I do this? The outputted number of lines can vary, so \r tricks won't be easy to implement. There is __fpurge in Linux,...
Ostap's user avatar
  • 95
0 votes
0 answers
47 views

Powershell Console Output order [duplicate]

A have some PoSH code like this (testing in PowerShell ISE): $db = Get-opMailboxDatabase -Status | select name, ` @{l='DB_Size_GB';e={ [math]::Round(($_.DatabaseSize.ToString().Split(“(“)[1].Split(” “)...
Posix's user avatar
  • 21
1 vote
1 answer
44 views

In Powershell Core is it possible to get native progress output to console host window when running from within a script block?

I would like to get progress-output from native programs like restic backup or yt-dlp in powershell, even though I'm running the program from within a block like this. Is it possible for the inner ...
arberg's user avatar
  • 4,235
0 votes
0 answers
50 views

Datatable output not showing correctly in console

I have a large datatable (panel), which shows correctly in the console when I use its name. However, something very odd happens if I start filtering. If I use any filter, for example by showing only ...
ghx12's user avatar
  • 85
1 vote
1 answer
98 views

console.log statement differs when I execute it inside the function and outside the function

function func(){ var name console.log(name) name="pavan" console.log(name) } func() When I run the above code it gives me the output undefined pavan. var name console.log(name) ...
pavan octa's user avatar
0 votes
1 answer
85 views

How to get old terminal output for a currently running program that exceeding the buffer limit?

I am running a python program that is taking a while to run through all the iterations and I have been printing data to the terminal. However, the printed data exceeded the 1000 line limit in VSCode ...
BenE398503808's user avatar
0 votes
0 answers
128 views

How to disable node.js output wrap?

code is unimportant here So on the right, in the output It comes out like this: Because it is wrapping the output. Instead, it should be something like this: `['.', '.', '.', 'W', 'O', 'O', 'O', '...
Hercules's user avatar
0 votes
0 answers
71 views

how to output text to pdf using the same formatting as in the console in python

How can I output some text with colours to the console and also write that same text with the same formatting to a PDF file. for example, I can write coloured text to the console doing something like: ...
Gunnar's user avatar
  • 35
-1 votes
1 answer
83 views

How can I change size of any specific character in eclipse ide?

how can increase size of any specific character of eclipse's console in windows11 ? I know how to change size of font size and color but I want increase size of space" " in my output. want ...
Wasim Patel's user avatar
1 vote
2 answers
66 views

Writing to Console and File in Python Script

I am looking for some help on a project I am doing where I need to output the responses to the console as well as write them to a file. I am having trouble figuring that part out. I have been able to ...
jdub04's user avatar
  • 11
0 votes
1 answer
41 views

Testing standard in and out in java without anticipating the user input that will be written

I have the typical java class that reads a user input from the console, processes it, and answers accordingly. For example: If the user types "hello" The program answers "Hello world!&...
Silverman's user avatar
  • 304
0 votes
2 answers
125 views

Empty Console Output Python

I added and used undetected_chromedriver library, and after that the program stopped working. Did I do something wrong? Nothing is written in the console from selenium import webdriver from selenium....
KraKoff_'s user avatar
1 vote
0 answers
267 views

PHP/SSH: How to output (echo) ssh result if they content multiple page?

I am try connect by SSH to device (in my case Huawei switch), execute command and print result on web page. If my $ssh_input equal like 'display arp | i 10.100.1.1' i have next result in terminal and ...
Narmo's user avatar
  • 11

15 30 50 per page
1
2 3 4 5
18