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
7 answers

NullPointerException in Console's readLine()

This: Console c = System.console(); String readline; String u = c.readLine("%s", "args"); Throws a NullPointerException. Yet the signature of the method is: public String readLine(String fmt, Object... args) Why's this exception…
andandandand
  • 21,946
  • 60
  • 170
  • 271
6
votes
3 answers

Multiple Consoles at Once

Is there an easy way to do this? I am testing my networking application using just the console for now. What would be nice is to have multiple consoles from one project and one press of the "Debug Now" menu item. I could, like I have in the past,…
bobber205
  • 12,948
  • 27
  • 74
  • 100
6
votes
1 answer

Can't import with IntelliJ SBT console

I installed Intellij's official SBT plugin (still in alpha), I imported without a problem a Scala SBT project (with build.sbt). But when I try to import something in the Scala console it prints this: import recfun.Main._ …
DennisVDB
  • 1,347
  • 1
  • 14
  • 30
6
votes
3 answers

Sending message from one C# console application to another

First of all, I've read all related topics and they gave general idea but implementation doesn't work for me: Send strings from one console application to another How to send input to the console as if the user is typing? Sending input/getting…
Jaded
  • 1,802
  • 6
  • 25
  • 38
6
votes
2 answers

How to make command history in console application?

I want to make interactive console application, which allows to enter command in loop. For example, user types "search" and program finds some data and prints it on the screen. Then the program waits for the next command (which can be search, quit…
user2717575
  • 369
  • 7
  • 16
6
votes
1 answer

"Bad Masonry element: [object Object]"

Trying to incorporate the latest version of Masonry, I'm clueless as to what this error means. In the console, I get this message: Bad masonry element: [object Object] plugins.js:16 y plugins.js:16 n plugins.js:16 (anonymous function) script.js:24 c…
Staffan Estberg
  • 6,795
  • 16
  • 71
  • 107
6
votes
1 answer

how to configure settings of visual studio console window once and for all

How can I change the default settings of the Visual Studio console window?
morpheus
  • 18,676
  • 24
  • 96
  • 159
6
votes
3 answers

Allow tab completion in rbash

I have restricted user, whose default shell is rbash. Now, I would like to allow the TAB completion feature for this user for his/her home directory, instead of getting this error: -rbash: /dev/null: restricted: cannot redirect output -rbash:…
TomiL
  • 671
  • 2
  • 11
  • 25
6
votes
1 answer

How to output unicode characters in C/C++

I have problems with outputing unicode characters in Windows console. I am using Windows XP and Code Blocks 12.11 with mingw32-g++ compiler. What is the proper way to output unicode characters in Windows console with C or C++? This is my C++…
user2581142
6
votes
6 answers

How to loop a Console App

i just need to be able to loop a console app. what i mean by that is: program start: display text get input do calculation display result display text get input. REPEAT PROCESS INFINATE NUMBER OF TIMES UNTIL THE USER EXITS THE APPLICATION. program…
jay_t55
  • 11,362
  • 28
  • 103
  • 174
6
votes
1 answer

Use [STAThread] in a console program in C#

I have written code for a C# console application. It copies a clipboard value to a file, and it runs without any error. Now I want to use it in another C# project with other code. I use [STAThread] after class{}, but it give me an error: ::…
user2442074
6
votes
3 answers

Keep the console script persistent in Google Chrome

I have a script I want to use in the Google Chrome console. But this script is going to reload the page. A bit like this : setInterval(function(){location.reload();},3000); The problem is, once it's reloaded, the script stops and the console is…
6
votes
3 answers

Can I create a console application using Xamarin.Mac?

I just purchased Xamarin.Mac in an effort to create a cross platform console utility. I figured this would be trivial but I am missing something. How can I create and what do I need to do to deploy a simple Console.WriteLine("Hello World"); app…
Jamey McElveen
  • 18,135
  • 25
  • 89
  • 129
6
votes
1 answer

C# Process.Start() slower than console

I want to make a parser for ffmpeg output. But when running ffmpeg just only via strCmdText = "-y -i \"" + path + "\""; strCmdText += " -async 1 -vf yadif -c:v libx264 -b:v 1024k -r 30 -bf 1 -an nul.avi"; Process.Start(new…
gu471
  • 173
  • 12
6
votes
1 answer

VB.Net command line (console) program with parameters for SharePoint

I would like to create a console program in VB.net that would allow parameters. What i would like to do is in the code below add parameters so the webpart page can be created from the Run menu. e.g. C:.......\MyProgram.exe "Design" --This would then…
K-M
  • 660
  • 3
  • 13
  • 27