Questions tagged [console]
A mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks
console
1,864
questions
233
votes
11
answers
137k
views
Accessing console and devtools of extension's `background` script
I just started out with Google Chrome extensions and I can't seem to log to console from my background js. When an error occurs (because of a syntax error, for example), I can't find any error ...
139
votes
7
answers
167k
views
How to read a single char from the console in Java (as the user types it)?
Is there an easy way to read a single char from the console as the user is typing it in Java? Is it possible? I've tried with these methods but they all wait for the user to press enter key:
char tmp ...
100
votes
9
answers
62k
views
Chrome/Firefox console.log always appends a line saying 'undefined'
Every time console.log is executed, a line saying undefined is appended to the output log.
It happens in both Firefox and Chrome on Windows and Linux.
506
votes
31
answers
1.0m
views
How can I clear the interpreter console?
Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff, etc.
Like any console, after a while the visible ...
1137
votes
30
answers
1.3m
views
How can I get the application's path in a .NET console application?
How do I find the application's path in a console application?
In Windows Forms, I can use Application.StartupPath to find the current path, but this doesn't seem to be available in a console ...
184
votes
14
answers
888k
views
How to clear the console using Java?
Can any body please tell me what code is used for clear the screen in Java?
For example, in C++:
system("CLS");
What code is used in Java to clear the screen?
219
votes
36
answers
614k
views
How to stop C++ console application from exiting immediately?
Lately, I've been trying to learn C++ from this website. Unfortunately whenever I try to run one of the code samples, I see that program open for about a half second and then immediately close. Is ...
528
votes
25
answers
571k
views
Preventing console window from closing on Visual Studio C/C++ Console application
This is a probably an embarasing question as no doubt the answer is blindingly obvious.
I've used Visual Studio for years, but this is the first time I've done any 'Console Application' development.
...
186
votes
14
answers
401k
views
Changing default encoding of Python?
I have many "can't encode" and "can't decode" problems with Python when I run my applications from the console. But in the Eclipse PyDev IDE, the default character encoding is set to UTF-8, and I'm ...
167
votes
12
answers
110k
views
How can I make console.log show the current state of an object?
In Safari with no add-ons (and actually most other browsers), console.log will show the object at the last state of execution, not at the state when console.log was called.
I have to clone the object ...
449
votes
15
answers
379k
views
JUnit test for System.out.println()
I need to write JUnit tests for an old application that's poorly designed and is writing a lot of error messages to standard output. When the getResponse(String request) method behaves correctly it ...
576
votes
31
answers
552k
views
Text progress bar in terminal with block characters [closed]
I wrote a simple console app to upload and download files from an FTP server using the ftplib.
I would like the app to show some visualization of its download/upload progress for the user; each time ...
156
votes
8
answers
162k
views
Capturing console output from a .NET application (C#)
How do I invoke a console application from my .NET application and capture all the output generated in the console?
(Remember, I don't want to save the information first in a file and then relist as ...
62
votes
7
answers
25k
views
System.out.println and System.err.println out of order
My System.out.println() and System.err.println() calls aren't being printed to the console in the order I make them.
public static void main(String[] args) {
for (int i = 0; i < 5; i++) {
...
118
votes
5
answers
90k
views
What's a good Java, curses-like, library for terminal applications? [closed]
I would like to write a Java terminal application that does screen manipulation. Are there any good libraries out there that allow you to manipulate the screen like curses in the *nix/C world?
...