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
6
votes
2 answers

Take user input with JavaScript in the console

I need to get user input when running a .js in a console with spidermonkey like this: $ js myprogram.js What's the JavaScript equivalent of Ruby's gets?
alt
  • 13,357
  • 19
  • 80
  • 120
6
votes
1 answer

Pipes in Delphi for Command Prompt

How can I get Delphi to pass a string to the input pipe to a CMD process. I am able to get an error pipe and output pipe functioning properly, unfortunately not the input pipe. The code I am using is taken from an online tutorial for piping. There…
James_Hill
  • 167
  • 1
  • 4
  • 13
6
votes
4 answers

C++ Console Application, hiding the title bar

I have a Windows console application written in C++ and want to hide/remove the complete title bar of the console window, including the close, min/max controls etc. I searched a lot but didn't found anything useful yet. I inquire the console HWND…
asdrubael
  • 483
  • 4
  • 9
  • 16
6
votes
1 answer

Symfony 2 Console command for creating custom Database

I am working on a Symfony 2 project where each user have his own database. In my config.yml file I have a doctrine:dbal:orm set for a client but no connection properties because they are set at runtime and referenced by all users. I.e I only have…
6
votes
1 answer

How to write binary data into stdout in Delphi?

How do I write to stdout from Delphi console application? Here's what I have tried. I have rigged this simple test app according to infos I could find, to read a file from disk and output it to console stdout: program ConsoleOut; {$APPTYPE…
Kromster
  • 7,181
  • 7
  • 63
  • 111
6
votes
1 answer

How to read console input on M3 Dart

With M3 the classes like StringInputStream are replaced with Stream. How can I read stdin input on a server application?
joan
  • 2,407
  • 4
  • 29
  • 35
6
votes
2 answers

What DB does rails 3 console --sandbox use?

when I run "rails console --sandbox" I am not able to see inserts in my database. When I leave the option off I am able to see the data in my development database just fine. Everything from the console seems to work the same. I am using…
Mark
  • 105
  • 4
6
votes
2 answers

Java - How to Compile a single file with Java Eclipse

I am trying to compile one file in a java project, but I am seeing other result (result of another file ) in console. I even tried Ctrl + F11 but the same thing happened In the dropdown of Run button of Java I am not finding the current file name…
madhu131313
  • 7,003
  • 7
  • 40
  • 53
6
votes
2 answers

Use the console to see available methods on an object?

Is there any way I can use the console to see the methods available on a JS object? I'm thinking of something like this: > var myArray = [1,2,3]; undefined > myArray [1, 2, 3] > myArray.logme = function() { console.log(this); }; function () {…
Richard
  • 62,943
  • 126
  • 334
  • 542
6
votes
1 answer

Why does prototyping Function not affect console.log?

I prototyped Function so that it has a getBody function: Function.prototype.getBody = function() { // Get content between first { and last } var m = this.toString().match(/\{([\s\S]*)\}/m)[1]; // Strip comments return…
YingYang
  • 888
  • 2
  • 15
  • 31
6
votes
1 answer

Set font and font size in R Console programmatically?

Is it possible to set the console font and font size, as I would with "Edit->GUI preferences", programmatically? How would a function for this look like? I am on windows.
Karsten W.
  • 17,826
  • 11
  • 69
  • 103
6
votes
1 answer

Mysterious Smiley turns up in my command prompt, it has me absolutely baffled, is my code leaking?

Lately, I have been just messing around in C++, just getting used to it, earlier today I was mucking about with arrays and when I compiled the program a mysterious smiley appeared, the array had no ASCII code inside it that was related to the…
otc
  • 431
  • 4
  • 15
6
votes
2 answers

Input on same line as output in C#

For example: C:\> Input a number: 60 Where the output would be "Input a number: " and the input would be "60". How do I get these to be on the same line? The problem is when I output "Input a number: ", it automatically starts a new line, so the…
Atomix
  • 2,440
  • 8
  • 36
  • 48
6
votes
1 answer

Use the Tampermonkey API from the Chrome console?

Is there any way use Tampermonkey's API in Chrome's JavaScript console? I want to mess with functions like GM_xmlhttpRequest() and GM_listValues().
Jake
  • 2,106
  • 1
  • 24
  • 23
6
votes
3 answers

Regular expression to match one of two characters

What regular expression can I use to make sure input matches either a character 'a' or character 'x'. I have tried the following but this doesn't work as I had hoped. char option; Console.WriteLine("Please make your option"); for (int i = 0; i <…
Arianule
  • 8,811
  • 45
  • 116
  • 174