Questions tagged [console]
A mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks
console
14,176
questions
1214
votes
31
answers
756k
views
Colors in JavaScript console
Can Chrome's built-in JavaScript console display colors?
I want errors in red, warnings in orange and console.log's in green. Is that possible?
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 ...
1009
votes
42
answers
642k
views
How to change node.js's console font color?
I had to change the console background color to white because of eye problems, but the font is gray colored and it makes the messages unreadable. How can I change it?
936
votes
10
answers
566k
views
Node.js: printing to console without a trailing newline?
Is there a method for printing to the console without a trailing newline? The console object documentation doesn't say anything regarding that:
console.log()
Prints to stdout with newline. This ...
646
votes
18
answers
297k
views
How can I update the current line in a C# Windows Console App?
When building a Windows Console App in C#, is it possible to write to the console without having to extend a current line or go to a new line? For example, if I want to show a percentage representing ...
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 ...
568
votes
6
answers
420k
views
Swift: print() vs println() vs NSLog()
What's the difference between print, NSLog and println and when should I use each?
For example, in Python if I wanted to print a dictionary, I'd just print myDict, but now I have 2 other options. How ...
556
votes
6
answers
473k
views
Unable to show a Git tree in terminal
Killswitchcollective.com's old article, 30 June 2009, has the following inputs and outputs
git co master
git merge [your_branch]
git push
upstream A-B-C-D-E A-B-C-D-E-F-G
...
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.
...
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 ...
490
votes
32
answers
618k
views
How do I launch the Android emulator from the command line?
I'm on Mac, working on Android development from the terminal. I have successfully created the HelloWorld project and now I'm trying to run it from the command line in the Android emulator. Which ...
480
votes
15
answers
469k
views
How do I print debug messages in the Google Chrome JavaScript Console?
How do I print debug messages in the Google Chrome JavaScript Console?
Please note that the JavaScript Console is not the same as the JavaScript Debugger; they have different syntaxes AFAIK, so the ...
475
votes
15
answers
213k
views
How can I call controller/view helper methods from the console in Ruby on Rails?
When I load script/console, sometimes I want to play with the output of a controller or a view helper method.
Are there ways to:
simulate a request?
call methods from a controller instance on said ...
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 ...
429
votes
9
answers
161k
views
What's the difference between console.dir and console.log?
In Chrome the console object defines two methods that seem to do the same thing:
console.log(...)
console.dir(...)
I read somewhere online that dir takes a copy of the object before logging it, ...