Questions tagged [console]

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

A terminal 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.

A terminal 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 terminals.

A console is a particular type of terminal, usually a physical terminal or a terminal implemented directly by the kernel. The term "console" is often incorrectly used in place of "terminal".

14034 questions
159
votes
14 answers

Having the output of a console application in Visual Studio instead of the console

When doing a console application in Java with Eclipse, I see the output being put in a text box in the IDE itself, instead of having a console popping up like in Visual Studio. This comes in handy, as even after the program has exited, I can still…
devoured elysium
  • 101,373
  • 131
  • 340
  • 557
154
votes
12 answers

How do you add a timer to a C# console application

Just this - How do you add a timer to a C# console application? It would be great if you could supply some example coding.
Johan Bresler
  • 6,450
  • 11
  • 56
  • 77
153
votes
8 answers

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 I would love to receive it as live.)
Gripsoft
  • 2,570
  • 7
  • 27
  • 30
142
votes
16 answers

How To: Best way to draw table in console app (C#)

I have an interesting question. Imagine I have a lot of data changing in very fast intervals. I want to display that data as a table in console app. f.ex: ------------------------------------------------------------------------- | Column 1 | …
Lukas Šalkauskas
  • 14,191
  • 20
  • 61
  • 77
141
votes
12 answers

Node.js console.log vs console.info

What is the benefit of using console.log vs console.info? Or any of the other console commands for that matter? console.info("info"); console.error("error"); console.warn("warn"); vs console.log("log"); I thought it might change the color of the…
seantomburke
  • 10,514
  • 3
  • 18
  • 23
137
votes
7 answers

How to get result of console.trace() as string in javascript with chrome or firefox?

console.trace() outputs its result on console. I want to get the results as string and save them to a file. I don't define names for functions and I also can not get their names with callee.caller.name.
js_
  • 4,671
  • 6
  • 44
  • 61
137
votes
7 answers

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 = (char) System.in.read(); char tmp = (char) new…
victor hugo
  • 35,514
  • 12
  • 68
  • 79
136
votes
33 answers

How to add a Timeout to Console.ReadLine()?

I have a console app in which I want to give the user x seconds to respond to the prompt. If no input is made after a certain period of time, program logic should continue. We assume a timeout means empty response. What is the most straightforward…
Larsenal
  • 49,878
  • 43
  • 152
  • 220
134
votes
5 answers

Read input from console in Ruby?

I want to write a simple A+B program in ruby, but I have no idea how to work with the console.
Sergey
  • 11,548
  • 24
  • 76
  • 113
133
votes
1 answer

console.log javascript [Function]

I'm trying to log a function in javascript: console.log(callback) >>[Function] I want to see what the function is. Can I do that? Thanks.
Harry
  • 52,711
  • 71
  • 177
  • 261
133
votes
10 answers

How to open a new tab in GNOME Terminal from command line?

I'm using Ubuntu 9.04 x64 and when I write: gnome-terminal --tab At the terminal, I expect it to open a new tab in the same terminal window. But it opens a new window instead. I found out that its intention is to open a new tab in a new window,…
Vikrant Chaudhary
  • 11,089
  • 10
  • 53
  • 68
132
votes
1 answer

TypeError: Illegal Invocation on console.log.apply

If you run this in the chrome console: console.log.apply(null, [array]) Chrome gives you back an error: // TypeError: Illegal Invocation Why? (Tested on Chrome 15 via OSX)
Jacksonkr
  • 31,583
  • 39
  • 180
  • 284
131
votes
6 answers

How to write to Console.Out during execution of an MSTest test

Context: We have some users reporting issues with a file upload feature in our web application. It only happens occasionally and without any special pattern. We have been trying to figure it out for a long time, adding debug information anywhere we…
Julian
  • 20,008
  • 17
  • 77
  • 108
130
votes
17 answers

Increase font size chrome console

How can i increase the font-size in the chrome console? It seems Paul Irish did it: http://www.youtube.com/watch?v=4mf_yNLlgic UPDATE Here are some tips on how customize the theme: …
amosrivera
  • 26,114
  • 9
  • 67
  • 76
126
votes
15 answers

Adding timestamps to all console messages

I have a complete, deployed, Express-based project, with many console.log() and console.error() statements throughout. The project runs using forever, directing the stdout and stderr to 2 separate files. It all works quite well, but now I'm missing…
Traveling Tech Guy
  • 27,194
  • 23
  • 111
  • 159