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

User authentication with client on limited-input device in IdentityServer

I'm trying to recreate Azure CLI authentication using Identity Server. How can I do that? I have a CLI which uses client from IdentityModel to access token to API in the name of the user sourced from external identity provider. In Azure CLI the flow…
xmichaelx
  • 569
  • 1
  • 6
  • 17
2
votes
1 answer

Gracefully shut-down command-line application on console window closure (on windows)

I have a small(ish) command-line application that talks to some custom hardware. Right now, you run the executable, and it pops up a console window, and does it's thing. I'm handling SIGINT and SIGTERM so if you hit ctrl+c in the console window, it…
Fake Name
  • 5,556
  • 5
  • 44
  • 66
2
votes
2 answers

Can't Access MS CRM Dynamic 365 by C# code

I have a problem when try to connect to MS CRM v9 I used this code to connect: Uri organizationUri = new Uri(OrgUrl); AuthenticationCredentials authCredentials = new AuthenticationCredentials(); authCredentials.ClientCredentials.UserName.UserName…
2
votes
1 answer

How can I know that the user hit the ESC key in a console with ncurses (Linux)?

I have a problem in detecting whether I just got a plain ESC key (just code 27) or whether it was another special key such as an Arrow Up which sends me three bytes: ESC [ A (27 91 65). Now, I understand escape sequences, what I don't understand is…
Alexis Wilke
  • 19,179
  • 10
  • 84
  • 156
2
votes
0 answers

How do I get the model state from a HTTPRequestResponse from within a console application

I have an APS.NET Core 2.0 API that I am writing a test client for. The test client is a console application. I want to be able to read and display any errors returned from may API call that would be in the model state. In my API, if the model is…
2
votes
3 answers

Best practice to include console app in NuGet

I'm developing an open-source library which mainly consists of one class-library project targeting .NET Standard 2.0. On top of that, I've also implemented a console app which is the CLI to this library. The console project (for historic reasons)…
Dejan
  • 9,150
  • 8
  • 69
  • 117
2
votes
1 answer

.NET Core 2 Console App Dependencies Issue on Azure

Short version of the problem: I'm having difficulties including the assemblies my .NET Core Console App depends on. Initially, the assemblies from NuGet packages were not included in the bin folder even though I could run the app in Debug mode…
Sam
  • 26,817
  • 58
  • 206
  • 383
2
votes
2 answers

Getting the domain dynamically in a Symfony Console Command

I am encountering precisely this problem: Symfony Docs - How to Generate URLs and Send Emails from the Console Our email templates are being filled with "localhost" instead of "my.real-domain.name". When constructing links to the application using…
Worp
  • 948
  • 4
  • 17
  • 30
2
votes
1 answer

Task Scheduler with .dll

net core 2.0 console app on a schedule only problem is i have a .dll file - I have followed resources which say to put the 'Start-in' option to the path of project and this hasn't worked - however when I navigate to the folder with the dll and run…
rahulchawla
  • 170
  • 1
  • 3
  • 20
2
votes
2 answers

Why console application is taking more time than forms application in c#

I have created a Class Library (called as GNGEngine.dll) which performs some image processing stuff. This dll contains a function ProcessBitmap() as the main function to do searching for specific pattern. I have tested the engine by creating…
IrfanRaza
  • 3,030
  • 17
  • 64
  • 89
2
votes
2 answers

Embedding password in and Internal Console App

I'm about to release a console application onto one of our servers to be run by the task scheduler on a daily basis. Based on certain conditions, the application will email selected users through Office 365. In order to email users, of course, I'll…
2
votes
3 answers

C++ - Overwrite Multiple Lines that were Previously Output to Console

If I have a grid of characters displayed in the console, is there any practical way to re-write those multiple lines in order to output an altered grid on those same lines of the console. e.g, I would like this code: #include using…
Gerald
  • 521
  • 1
  • 6
  • 16
2
votes
2 answers

Undo not working using a stack of 2D arrays

So I have a working game of checkers (or draughts if you prefer), and i am trying to implement a simple undo feature. I store my board in a 2D array and i am trying to use a stack to store the board before the player moves and if undo is selected…
sfa20
  • 63
  • 1
  • 8
2
votes
1 answer

Why does my Windows Console Close Event Handler time out?

I build the following program in VS2017/Windows 10. When I run it, I hit close and ctrl_handler() is called as expected, but after ~three seconds the process is forcefully terminated anyway. This is a problem because my real application writes large…
sebf
  • 2,831
  • 5
  • 32
  • 50
2
votes
2 answers

handle exit event of child process

I have a console application and in the Main method. I start a process like the code below, when process exists, the Exist event of the process is fired but it closed my console application too, I just want to start a process and then in exit event…
Ehsan
  • 1,662
  • 6
  • 28
  • 49
1 2 3
99
100