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
109
votes
14 answers

Chrome JavaScript developer console: Is it possible to call console.log() without a newline?

I'd like to use console.log() to log messages without appending a new line after each call to console.log(). Is this possible?
MitchellSalad
  • 4,171
  • 8
  • 23
  • 24
108
votes
6 answers

Console.log in Dart Language

How can I log into the browser console, like console.log in JavaScript, from the Dart language?
Andreas Köberle
  • 106,652
  • 57
  • 273
  • 297
108
votes
10 answers

Colorize logs in eclipse console

Is there a way to colorize parts of logs in the eclipse console. I know I could send to error and standard streams and color them differently but I'm more looking someting in the lines of ANSI escape codes (or anyother, HTML ?) where I could embed…
Newtopian
  • 7,543
  • 4
  • 48
  • 71
107
votes
3 answers

When to generate a new Application Key in Laravel?

Since it automatically sets it for me in my .env file when I create the app, I'm not sure when I should run it. In addition to that, if a second developer comes in, and clones the app, does he/she need to run php artisan key:generate ? How do we…
code-8
  • 54,650
  • 106
  • 352
  • 604
107
votes
10 answers

java.io.Console support in Eclipse IDE

I use the Eclipse IDE to develop, compile, and run my Java projects. Today, I'm trying to use the java.io.Console class to manage output and, more importantly, user input. The problem is that System.console() returns null when an application is run…
Ross
  • 3,709
  • 8
  • 35
  • 33
105
votes
6 answers

Is there go up line character? (Opposite of \n)

I would like to overwrite something on a line above in a serial console. Is there a character that allows me to move up?
Sponge Bob
  • 1,551
  • 5
  • 17
  • 23
104
votes
10 answers

How to save all console output to file in R?

I want to redirect all console text to a file. Here is what I tried: > sink("test.log", type=c("output", "message")) > a <- "a" > a > How come I do not see this in log Error: unexpected symbol in "How come" Here is what I got in test.log: [1]…
user443854
  • 7,096
  • 13
  • 48
  • 63
104
votes
11 answers

Progress bar in console application

I'm writing a simple c# console app that uploads files to sftp server. However, the amount of files are large. I would like to display either percentage of files uploaded or just the number of files upload already from the total number of files to…
smr5
  • 2,593
  • 6
  • 39
  • 66
103
votes
21 answers

Node.Js on windows - How to clear console

Being totally new into node.js environment and philosophy i would like answers to few questions. I had downloaded the node.js for windows installer and also node package manager.Windows Cmd prompt is being currently used for running nodejs…
Deeptechtons
  • 10,945
  • 27
  • 96
  • 178
103
votes
10 answers

How to hide console window in python?

I am writing an IRC bot in Python. I wish to make stand-alone binaries for Linux and Windows of it. And mainly I wish that when the bot initiates, the console window should hide and the user should not be able to see the window. What can I do for…
Godwin Austin
103
votes
5 answers

is node.js' console.log asynchronous?

Are console.log/debug/warn/error in node.js asynchrounous? I mean will javascript code execution halt till the stuff is printed on screen or will it print at a later stage? Also, I am interested in knowing if it is possible for a console.log to NOT…
dhruvbird
  • 6,061
  • 6
  • 34
  • 39
103
votes
7 answers

Python using basicConfig method to log to console and file

I don't know why this code prints to the screen, but not to the file? File "example1.log" is created, but nothing is written there. #!/usr/bin/env python3 import logging logging.basicConfig(level=logging.DEBUG, …
Jovik
  • 4,046
  • 6
  • 24
  • 24
102
votes
15 answers

Erase the current printed console line

How can I erase the current printed console line in C? I am working on a Linux system. For example - printf("hello"); printf("bye"); I want to print bye on the same line in place of hello.
Peter
100
votes
7 answers

How to use Console.WriteLine in ASP.NET (C#) during debug?

I want to write some result to the console in ASP.NET (C#). It works in a Window application, but a Web application does not work. Here is what I have tried: protected void btonClick_Click(object sender, EventArgs e) { Console.WriteLine("You…
Leap Bun
  • 2,265
  • 5
  • 28
  • 44
99
votes
10 answers

Capture console exit C#

I have a console application that contains quite a lot of threads. There are threads that monitor certain conditions and terminate the program if they are true. This termination can happen at any time. I need an event that can be triggered when…
ZeroKelvin
  • 1,923
  • 2
  • 15
  • 9