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
2
votes
1 answer

How to "flush" ApplicationInsightsTraceListener, in a Console Application, on exit?

I have an older console application which I'm trying to switch the tracing to use Application Insights using ApplicationInsightsTraceListener. I'm having trouble getting the tail end of the logs without adding an arbitrary sleep to the end. I've…
drs9222
  • 4,448
  • 3
  • 33
  • 41
2
votes
1 answer

Windows 98 SE - Calling OutputDebugString from a 16-bit console app

I would like to be able to call OutputDebugString from a Turbo Pascal 7.0 console mode program. The host PC is running Windows98, which as far as I can tell supports OutputDebugString. I can't find any header files that declare the entry point and…
rossmcm
  • 5,493
  • 10
  • 55
  • 118
2
votes
0 answers

Crossplatform detect whether a console application has been closed

I'm writing a new Console application in .NET Core that has to work crossplatform. When somebody closes the program - in whatever way - the program should save a lot of data. So I tried to find a way to detect whether the program gets closed. This…
Joshua Bakker
  • 2,288
  • 3
  • 30
  • 63
2
votes
1 answer

Tracking clipboard changing data in win32 console application?

I am currently making a win32 console application in c++. Now, I have to react on the user changing the clipboard content. Currently I am just checking for the user pressing ctrl+c, but obviously that's not enough since it won't track…
L. Etienne
  • 77
  • 7
2
votes
1 answer

Drag and drop event handler for console apps

This question is not for how to open a console app by dragging and dropping a file onto the exe and then accessing the file path as an argument. Instead, this is for handling the drag/drop of a file onto an already-open console window. If you've…
oscilatingcretin
  • 10,457
  • 39
  • 119
  • 206
2
votes
5 answers

Write a program to find an index of Max item in an array

Write a console app in C# to find an index i in an array that is the maximum number in the array. If the maximum element in the array occurs several times, you need to display the minimum index. If the array is empty, output -1. Please let me know…
2
votes
1 answer

How to setup ElmahCore for a Console Application?

I want to log errors for a console application using Elmah.I've found ElmahCore and elmah.io.core but I don't know how to setup any of them on a console app.I'm using .net core.
M.Alaa
  • 51
  • 7
2
votes
1 answer

How do I create a linux C application with a console that I can connect to remotely

I have a multi-threaded application written in C that runs under Debian (Stretch). One of the threads is a simple console that supports several commands to control the application. Normally this application is started automatically when the system…
2
votes
1 answer

Is there a way of writing large datatable in an excel file more efficiently or faster?

I'm quite new in handling huge data sets and I'm using C# for this. Now, the data that I'm handling (which is a CSV) has a column of 19 and row of 9,831. When it comes to writing the data into an existing excel file the program take 6 minutes to…
R. Suarez
  • 23
  • 5
2
votes
3 answers

Is it possible to call an application selection window (Right click->Open With->Other) from the linux console?

On Gnome/KDE you can select in which application you want to open file (Right click on file -> Open With -> Other). Is it possible open file that way, but from console? For example: you print " file.ext" and instead of opening in concrete…
Arturas Smorgun
  • 954
  • 1
  • 8
  • 22
2
votes
7 answers

C# console application won't debug, very strange

I created a new console app in an existing solution. Set a break point, and it won't debug. It opens up and immediately closes down again. Tested another console app in same solution works fine. Any ideas?
JL.
  • 78,954
  • 126
  • 311
  • 459
2
votes
4 answers

How to Print Random number in a Math Table?

I am implementing a math table using two integers (a and tableSize). I have built a random operation named R. I am going to calculate a random number between the row and column range and print the random number. For those instances where the row…
Hasitha Jayawardana
  • 2,326
  • 4
  • 18
  • 36
2
votes
0 answers

Hello World Console Application running three threads?

Possible Duplicate: Why 3 threads for a basic single threaded c# console app? Steps: Created a Console Application (c#) in .net. Wrote the below 3-4 lines of code in Program.cs class Program { static void Main(string[] args) { …
Manish Basantani
  • 16,931
  • 22
  • 71
  • 103
2
votes
2 answers

C# Random console math equation game: Converting string back to equation?

I'm currently teaching myself C# and came up with a program idea as follows: Program generates random number Program generates random math operator Program generates random number Asks user for the answer to the randomly generated problem User…
Tonyobyo
  • 61
  • 9
2
votes
4 answers

Should I use Task.Wait()?

Should I use taskThatReturns.Wait() in code below or I can omit it since according to my understanding taskThatReturns.Result will do wait anyway. Task taskThatReturns = new…
vico
  • 17,051
  • 45
  • 159
  • 315