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
64
votes
8 answers

How to fully dump / print variable to console in the Dart language?

Hey there I am searching for a function which is printing a dynamic variable as completely as possible to the console in Dart language. In PHP for instance I would use var_dump() in order to get all information about a variable. In JavaScript I…
Blackbam
  • 17,496
  • 26
  • 97
  • 150
64
votes
7 answers

`po` gives `error: :1:1: error: use of unresolved identifier`

I have this problem with po in the console where trying to output a function works in itself, but outputting a variable or constant doesn't. As you can see here, although you'd think the var/let holds the content of bar.boy(), Swift somehow can't…
StuFF mc
  • 4,137
  • 2
  • 33
  • 32
63
votes
6 answers

CMTime seconds output

This may seem ridiculous, but how can I output the seconds of CMTime to the console in Objective-C? I simply need the value divided by the timescale and then somehow see it in the console.
arik
  • 28,170
  • 36
  • 100
  • 156
63
votes
8 answers

Is there a way to delete a character that has just been written using Console.WriteLine?

Is there any way to delete the last character from the console, i.e. Console.WriteLine("List: apple,pear,"); // Somehow delete the last ',' character from the console. Console.WriteLine("."); // Now the console contains "List: apple,pear." Sure, I…
Contango
  • 76,540
  • 58
  • 260
  • 305
63
votes
3 answers

What is "initiator other" in network in chrome console?

I fire an image tag when someone converts on our website for reporting and analytics: We noticed traffic decline…
Doug Fir
  • 19,971
  • 47
  • 169
  • 299
62
votes
5 answers

jQuery: Clearing Form Inputs

I have tried to different ways to clear a form:
First Name:
Last Name:
djphinesse
  • 969
  • 1
  • 7
  • 13
62
votes
12 answers

UrlEncode through a console application?

Normally I would just use: HttpContext.Current.Server.UrlEncode("url"); But since this is a console application, HttpContext.Current is always going to be null. Is there another method that does the same thing that I could use?
KevinUK
  • 5,053
  • 5
  • 33
  • 49
61
votes
7 answers

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++) { System.out.println("out"); …
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
60
votes
2 answers

How to write custom python logging handler?

How to write custom console log function to output only on the console window log messages on a single line (not append) until the first regular log record. progress = ProgressConsoleHandler() console = logging.StreamHandler() logger =…
koleto
  • 633
  • 1
  • 5
  • 5
60
votes
3 answers

How do I create an executable from Golang that doesn't open a console window when run?

I created an application that I want to run invisibly in the background (no console). How do I do this? (This is for Windows, tested on Windows 7 Pro 64 bit)
Bart Silverstrim
  • 3,445
  • 6
  • 34
  • 44
60
votes
3 answers

Grabbing the output sent to Console.Out from within a unit test?

I am building a unit test in C# with NUnit, and I'd like to test that the main program actually outputs the right output depending on the command line arguments. Is there a way from an NUnit test method that calls Program.Main(...) to grab…
Lasse V. Karlsen
  • 380,855
  • 102
  • 628
  • 825
60
votes
13 answers

How can I create table using ASCII in a console?

I would like to organize information like this: The information is organized with cells, whereas with System.out.println the information would be very disorganized.
Mike Brian Olivera
  • 1,414
  • 1
  • 16
  • 21
59
votes
4 answers

How to use logging with python's fileConfig and configure the logfile filename

I have a logging configuration file for logging to console and a file with different formats and levels. In my python script I can load this configuration and basically console and file output are ok. I set the file name in the config file as shown…
Micha
  • 591
  • 1
  • 4
  • 4
58
votes
2 answers

Java: Updating text in the command-line without a new line

I'd like to add a progress indicator to a command-line Java program. For example, if I'm using wget, it shows: 71% [===========================> ] 358,756,352 51.2M/s eta 3s Is it possible to have a progress indicator that updates…
Tom Marthenal
  • 3,066
  • 3
  • 32
  • 47
58
votes
4 answers

tqdm progressbar and zip built-in do not work together

tqdm is a Python module to easily print in the console a dynamically updating progressbar. For example from tqdm import tqdm from time import sleep for _ in tqdm(range(10)): sleep(0.1) prints a dynamic progressbar in the console for 1sec as…
Russell Burdt
  • 2,391
  • 2
  • 19
  • 30