Questions tagged [console-application]

A console application is a computer program designed to be used via a text-only computer interface, such as a text terminal, the command line interface of some operating systems (Unix, DOS, etc.) or the text-based interface included with most Graphical User Interface (GUI) operating systems, such as the Win32 console in Microsoft Windows, the Terminal in Mac OS X, and xterm in Unix.

A console application is a computer program designed to be used via a text-only computer interface, such as a text terminal, the command line interface of some operating systems (Unix, DOS, etc.) or the text-based interface included with most Graphical User Interface (GUI) operating systems, such as the Win32 console in Microsoft Windows, the Terminal in Mac OS X, and xterm in Unix. A user typically interacts with a console application using only a keyboard and display screen, as opposed to GUI applications, which normally require the use of a mouse or other pointing device. Many console applications such as command line interpreters are command line tools, but numerous text-based user interface (TUI) programs also exist.

As the speed and ease-of-use of GUI applications have improved over time, the use of console applications has greatly diminished, but not disappeared. Some users simply prefer console based applications, while some organizations still rely on existing console applications to handle key data processing tasks.

7241 questions
20
votes
8 answers

C# Console - hide the input from console window while typing

I'm using Console.ReadLineto read the input of the user. However, I want to hide/exclude the inputted text on the console screen while typing. For example, when the user writes "a", it writes "a" to the console and then I will have a variable with…
user3265040
  • 305
  • 1
  • 4
  • 11
20
votes
8 answers

Node.js console gets closed immediately after i execute the program from Visual Studio 2012 in Windows 8

I have installed Node.js in Windows 8 PC and installed the Node.js plugin for Visual Studio 2012. I executed a basic program from Visual Studio 2012 which just prints a string on console consol.log("Hi There"); The Node.js console prints "Hi There"…
20
votes
3 answers

Customizing the title bar area of a console application

Is it possible for me to either customize the title bar (i.e. change colour) or remove it completely?
Clarke Abear
  • 201
  • 1
  • 2
  • 3
20
votes
8 answers

How to set default input value in .Net Console App?

How can you set a default input value in a .net console app? Here is some make-believe code: Console.Write("Enter weekly cost: "); string input = Console.ReadLine("135"); // 135 is the default. The user can change or press enter to accept decimal…
Ronnie Overby
  • 45,287
  • 73
  • 267
  • 346
20
votes
3 answers

Correct File Path within C# Console Application

Can someone please tell me how I can get the correct file path for the file data.xml? Here is where the file sits: Here is my C# code that is checking to see if the file exists for the supplied path: public class Parser { static void…
J86
  • 14,345
  • 47
  • 130
  • 228
20
votes
7 answers

When implementing command line flags, should I prefix with a fowardslash (/) or hyphen (-)?

Are their any conventions (either written or just generally understood) for when to use a forward slash (/) or a hyphen (-) when reading arguments/flags from a command line? C:\> myprogram.exe -a C:\> myprogram.exe /a The two seem to be…
Connell
  • 13,925
  • 11
  • 59
  • 92
20
votes
3 answers

How do I make a console app always run as an administrator?

I have a console application that was developed to be called by a erp software. They call my app inside the erp and when they do it, i always get errors related to the insufficient permission to do it. I have checked the "run this program as an…
Marco
  • 235
  • 1
  • 2
  • 8
19
votes
4 answers

What makes an app console or Windows Form application?

[Visual Studio 2008] I created a new project for console application and modified it to look like this: class Program { static void Main (string[] args) { Thread.Sleep (2000); } } Then I created another project for Windows Form…
Hemant
  • 19,486
  • 24
  • 91
  • 127
19
votes
6 answers

Get IP address in a console application

I am looking to figure out what my IP address is from a console application. I am used to a web application by using the Request.ServerVariables collection and/or Request.UserHostAddress. How can this be done in a console app?
Computer Girl
19
votes
2 answers

Edit text in C# console application?

Is there a way to edit text in a C# console application? In other words, is it possible to place pre-defined text on the command line so that the user can modify the text and then re-submit it to the app?
CatDadCode
  • 58,507
  • 61
  • 212
  • 318
19
votes
5 answers

Scala: Draw table to console

I need to display a table in a console. My simple solution, if you would call it a "solution", is as follows: override def toString() = { var res = "\n" var counter = 1; res += stateDb._1 + "\n" res += " …
evildead
  • 4,607
  • 4
  • 25
  • 49
19
votes
2 answers

Visual Web developer - console application , how to

I am learning in the visual web developer c#, entity framework, and webservices. I want to be able to run the entity framework for example with out building it a gui, or run a browser. So condole application with reference can do the job. Can I add…
SexyMF
  • 10,657
  • 33
  • 102
  • 206
19
votes
5 answers

SetConsoleCtrlHandler routine issue

I'm writting a console application in C++. I use SetConsoleCtrlHandler to trap close and CTRL+C button. This allows for all my threads to stop and exit properly. One of the thread performs some saving that require some time to complete and I have…
Jeremy
  • 942
  • 1
  • 10
  • 28
19
votes
2 answers

Why Does VS2010 "Lose" my reference on build?

I've developed a class library that does stuff, and tested it with unit tests. The library and tests build and work fine. I then added in a Windows Service project to the solution to wrap the library up in. I've added a reference to my class…
Amethi
  • 1,167
  • 2
  • 11
  • 20
19
votes
3 answers

Displaying Arabic characters in C# console application

I believe it was possible to show Arabic characters on a console application 13+ years ago, since the days of Windows ME. Now i am using Visual Studio 2013, On a Windows 8, and the following code shows: ????? ?? Console.OutputEncoding =…
Alaa Alweish
  • 8,904
  • 16
  • 57
  • 84