Questions tagged [console-output]

103 questions
0
votes
0 answers

How do you disable debug text shown when adding a JTextArea to a container?

I have a program with 5 JTextArea components that are added to a container at runtime. The following code is an example of what I am doing (in my code everything is actually imported, and this code is run from within a JFrame subclass). JFrame frame…
Shadowtrot
  • 710
  • 1
  • 7
  • 13
0
votes
3 answers

Why does my Haskell program never print to the console?

I wanted to practice using the IO monad in Haskell so I decided to make a "screensaver" program which would recurse infinitely while printing to the console. When the code runs nothing appears on the console. When I send the SIGTERM to the program…
0
votes
1 answer

Asserting Correct Console Output in JUnit

I am trying to write a basic JUnit tutorial, and I am demonstrating this with a simple Hello World example using a basic service layer. My issue is that even though the test output matches my control data, assertEquals is still returning false. Can…
cyotee doge
  • 1,128
  • 4
  • 15
  • 33
0
votes
1 answer

How to disable a .DLL's console output?

I used to use WatiN for my Web Automation project. But, IE looked slow to me. I tried to use WatiN with FF projects, but it seems WatiN with Firefox is not as powerful as WatiN with IE. Before I though this, I researched how to use WatiN in Firefox…
PythEch
  • 932
  • 2
  • 9
  • 21
0
votes
1 answer

custom logging method MyLog not working for high-page characters in Objective-C

I am trying to use a custom logger to give clean console output for a text-based game. Below is the code of the method in question: void MyLog(NSString *format, ...) { va_list args; va_start(args, format); NSString *formattedString =…
Ky -
  • 30,724
  • 51
  • 192
  • 308
-1
votes
1 answer

Creating a hierarchical file structure in Python with file names and sizes

How to create file tree from list of (str, int)? I already tried to find ways to solve this problem, but I managed to find code for working with files, not a list of strings. Example of input: [ ('dir1\\file.exe', 14680064) …
wowlikon
  • 1
  • 2
-1
votes
1 answer

Shell script which prints error message when package not found

I'm writing a shell script, and I need to check for some dependencies being installed before executing anything. I found I can use which to see if it is installed or not. The problem is that when that dependency is not found, it throws the…
-1
votes
2 answers

C++ Colored text in console not showing when launching application directly

I have implemented my own Logging class for my applications I write in C++. I implemented the Logging class using this way (https://stackoverflow.com/a/54062826/12873837) of coloring the text. It does work very well, if I launch my program inside…
Can
  • 123
  • 2
  • 8
-1
votes
1 answer

Check if user pressed Enter

the following scenario is given: Welcome screen appears. If user has read the welcome text he has 2 choices: a) pressing ENTER to continue an getting the next text b) pressing the E-Key in oder to leave the program So my problem is: how can I check…
Dr.Sun
  • 9
  • 7
-1
votes
9 answers

How can i print a triangle with "*"s using for loop in java?

I want to draw a triangle with stars like below using for loop, but i really don't have any idea of how to do this ? Triangle is going to be like this: * ** *** **** ***** ****** ******* ******** ********* ********** and so on. Can anybody please…
Berk Elmas
  • 37
  • 2
  • 2
  • 5
-2
votes
1 answer

stuck to printing pyramid code although my code is correct but my jupyter notebook doesn't print me the exact answer

Screenshot of code and output Code num = int(input("Enter the number of rows:")) for i in range(0,num): for j in range(0,num-i-1): print(end="") for j in range(0,i+1): print("*",end="") print() Current…
md Tanvir
  • 13
  • 2
-2
votes
1 answer

how to fix no output to console window in eclipse

When running program I have no output to my console window, Tried selecting different console windows, closing and reopening the window, closing other open code package Codecademy; public class Continents { public static void main(String[] args)…
Indexedx
  • 1
  • 2
-2
votes
1 answer

Console output to subprocess

I'm trying to send commands through the console output via std::cout to a command-line program that I started with fopen("foo.exe","w"). I want to wait until the process has finished before continuing executing my main application. For some reason…
1 2 3 4 5 6
7