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
54
votes
5 answers

How can I upload an entire folder, that contains other folders, using sftp on linux?

I have tried put -r directory/*, which only uploaded the files and not folders. Gave me the error, cannot Couldn't canonicalise. Any help would be greatly appreciated.
Chris
  • 651
  • 2
  • 10
  • 16
53
votes
3 answers

Red warning message in Opera console

Red-colored message appeared, presumably after browser auto-update: Warning! This area is for use by developers only. Scammers have been known to encourage people to copy/paste information here to hack accounts. Do not proceed if you are…
Estus Flask
  • 206,104
  • 70
  • 425
  • 565
53
votes
6 answers

How can I check if a Java program's input/output streams are connected to a terminal?

I would like a Java program to have different default settings (verbosity, possibly colored output where supported) depending on its use. In C, there is an isatty() function which will return 1 if a file descriptor is connected to a terminal, and 0…
Zilk
  • 8,917
  • 7
  • 36
  • 44
53
votes
3 answers

Run Rails commands outside of console

With my large application, the Rails console takes a while to load up. Is there a way to single commands more easily? I'd also like to be able to automate stuff, and echo "query" | rails console isn't a great way to do things. Thoughts? EDIT: What…
tekknolagi
  • 10,663
  • 24
  • 75
  • 119
52
votes
5 answers

Masking password input from the console : Java

How to mask a password from console input? I'm using Java 6. I've tried using console.readPassword(), but it wouldn't work. A full example might help me actually. Here's my code: import java.io.BufferedReader; import java.io.Console; import…
New Start
  • 1,401
  • 5
  • 21
  • 29
52
votes
4 answers

Chrome - ERR_CACHE_MISS

Does anybody know what the following Chrome error is? Failed to load resource: net::ERR_CACHE_MISS I have had a look online, but have not found a good answer yet. Somebody said it might be related to the latest Chrome update? What is it and how can…
Paddy
  • 1,175
  • 1
  • 14
  • 23
51
votes
2 answers

web worker console.log

Is it just me, or is console.log() too much to ask for from HTML5 web workers? I know that manipulating the DOM is blocked because it is potentially dangerous, but is there really any possibility that console.log() could be maliciously exploited by…
ejang
  • 3,982
  • 8
  • 44
  • 70
51
votes
2 answers

Performance effect of using print statements in Python script

I have a Python script that process a huge text file (with around 4 millon lines) and writes the data into two separate files. I have added a print statement, which outputs a string for every line for debugging. I want to know how bad it could be…
Sudar
  • 18,954
  • 30
  • 85
  • 131
51
votes
2 answers

Use custom console for Visual Studio Console Application Debugging

Is it possible to set Visual Studio to use a non-standard console when debugging a Console Application? I'm not sure what the default console is, it looks just like cmd.exe. I would really love my Console Application to run in ConEmu when I…
51
votes
6 answers

How to check with PHP if the script is being run from the console or browser request?

I tried things like $_ENV['CLIENTNAME'] == 'Console' but that seems to work on only certain OS's (worked in windows, not linux). I tried !empty($_ENV['SHELL']) but that doesn't work always either... Is there a way to check this that will work in…
EdanB
  • 1,456
  • 3
  • 15
  • 15
50
votes
3 answers

Making a log4j console appender use different colors for different threads

I am tracking down some concurrency issues and it would be very helpful to have the output lines from each thread in a different color when logging to a console. I am on OS X. Could this be done using a conversion pattern to output some control…
David Tinker
  • 9,383
  • 9
  • 66
  • 98
50
votes
6 answers

Suppress "Try the new cross-platform PowerShell https://aka.ms/pscore6"

I don't mind a bit of Microsoft marketing, but this is annoying when I just want a clean PowerShell prompt. Has anyone found a way of suppressing just the Try the new cross-platform PowerShell https://aka.ms/pscore6 on opening PowerShell, without…
YorSubs
  • 3,194
  • 7
  • 37
  • 60
50
votes
8 answers

Does Console.WriteLine block?

Does Console.WriteLine block until the output has been written or does it return immediately? If it does block is there a method of writing asynchronous output to the Console?
Peter Johansson
  • 523
  • 1
  • 4
  • 6
50
votes
10 answers

Printing debug output to console in Codeception

Very thick question, but is there any way to print your own debug messages to the console in Codeception? I mean messages that have nothing to do with assertions, purely for debugging the tests themselves (e.g. like you would var_dump() a variable…
Ayame__
  • 980
  • 2
  • 9
  • 21
50
votes
10 answers

Getting Keyboard Input

How do I get simple keyboard input (an integer) from the user in the console in Java? I accomplished this using the java.io.* stuff, but it says it is deprecated. How should I do it now?
user1342573
  • 535
  • 1
  • 5
  • 8