Questions tagged [console]

A mechanism for interacting with a computer operating system or software by typing commands to perform specific tasks

A console is an interactive text-mode or text-based user interface to a software application or operating system. It may be implemented as a character-mode application or embedded in a graphical user interface.

It may be used as the main user interface or as a secondary interface for debugging and administrative tasks. The degree of interactivity varies widely between consoles.

12712 questions
1023
votes
27 answers

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 application.
JSmyth
  • 10,945
  • 3
  • 21
  • 18
1002
votes
30 answers

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?
Randomblue
  • 98,379
  • 133
  • 328
  • 526
771
votes
8 answers

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 function can take multiple arguments in a…
user157251
  • 64,489
  • 38
  • 208
  • 350
700
votes
34 answers

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?
MaiaVictor
  • 45,122
  • 42
  • 127
  • 254
560
votes
17 answers

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 how close a process is to completion, I'd just…
IVR Avenger
  • 13,266
  • 12
  • 42
  • 55
501
votes
6 answers

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 and when should I use each?
User
  • 20,562
  • 35
  • 99
  • 185
495
votes
31 answers

Text Progress Bar in the Console

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 a data chunk is downloaded, I would like it to…
bobber205
  • 11,636
  • 25
  • 71
  • 97
489
votes
6 answers

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 \ ----> \ your branch …
Léo Léopold Hertz 준영
  • 119,377
  • 159
  • 417
  • 655
488
votes
22 answers

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. When I run my application the console window pops…
Martin
  • 36,545
  • 20
  • 97
  • 129
474
votes
15 answers

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 print command in JavaScript Debugger will not work…
Tamas Czinege
  • 110,351
  • 39
  • 146
  • 173
453
votes
14 answers

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 request? test helper methods, either via said…
kch
  • 71,135
  • 44
  • 128
  • 148
408
votes
28 answers

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 command runs the emulator for my HelloWorld…
Thierry Lam
  • 41,912
  • 39
  • 108
  • 142
390
votes
13 answers

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 returns a XML response: @BeforeClass public static…
Mike Minicki
  • 7,457
  • 10
  • 37
  • 43
388
votes
11 answers

How to color the Git console?

I recently saw that the git console in Windows is colored, e.g. Green for additions, red for deletions, etc. How do I color my git console like that? To install it, I used the command: $ sudo apt-get install git-core
MauroPorras
  • 4,761
  • 5
  • 28
  • 41
387
votes
37 answers

How to 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 backlog of past commands and prints gets to be…
Soviut
  • 79,529
  • 41
  • 166
  • 227
1
2 3
99 100