I'm looking for tutorials on using PDCurses library. Unfortunately there is text only documentation, which is more like function reference. Are pdcurses similar enough to ncurses to use ncurses tutorials??? Any tips for making console UI's ???
PS. PDCurses - mingw32.
...
I'm developing an Windows Forms application that requires me to call a separate program to perform a task. The program is a console application and I need to redirect standard output from the console to a TextBox in my program.
I have no problem executing the program from my application, but I don't know how to redirect the output to...
In a C# console application, is there a smart way to have console output mirrored to a text file?
Currently I am just passing the same string to both Console.WriteLine and InstanceOfStreamWriter.WriteLine in a log method.
...
I have a command line program in C# that I've wrapped with a try-catch block to keep it from crashing the console. However, while I am debugging it, if an exception is thrown somewhere in the DoStuff() method, Visual Studio will break on the "catch" statement. I want Visual Studio to break where the exception occurred. What's the best...
I have a C# project building "winexe" that startup without console window.
However, I want to dispaly the console window and write stdout/stderr by giving a cmd line parameter. If it close, the application shutdown. For example: eclipse.exe -debug
How can it be done?
PS. I am using Visual Studio 2005
...
I am using Visual Studio 2008 Express and I tried creating a simple console application to test it. When I try to compile it, it compiles fine, but when I try to run it, it complains about the absence of a manifest file. As far as I know, VStudio should create the manifest file automatically, but since it is a simple console application ...
Hi all,
I am creating a small console app that needs a progress bar. Something like...
Conversion: 175/348 Seconds |========== | 50%
My question is, how do you erase characters already printed to the console? When I reach the 51st percentage, I have to erase this line from the console and insert a new line. In my current ...
Could you please explain me, what is the different between API functions AllocConsole and AttachConsole(-1) ? I mean if AttachConsole gets ATTACH_PARENT_PROCESS(DWORD)-1
Update: Sorry! My mistake. Of course AllocConsole instead of CreateConsole!
...
What am I doing wrong? I have a simple console app in VS08. When I hit Publish, it creates a setup.exe in the target folder. When you run setup.exe, it goes through the motions of installing, but it also runs the app, which is undesirable to say the least. Is there a setting I'm missing or something?
...
UPDATE (solution)
Months later someone turned me on to an awesome solution to this. If you install Git for Windows, it comes with this console app called Git Bash that does exactly what I descibed. I gather that it is derived from MinGW. It's easy and convenient and gives you all the Unix bash command line conveniences. Tab-completion w...
How to make console program,to dissapear and work in background?
I mean,I don't want to see the program,but I want to see it running through the task manager.
How can I do that?
Thanks.
...
Context : programming a c/c++ win32-mfc library
How to know whether we are in a console or a windowed app?
...
I've been exploring use of MSys lately as an alternative, 'nix-like shell for my windows development. However, the default colors and size are driving me crazy. Anyone have any idea as to how I can change the default size, color, and / or font? Honestly, I'd be happy if I could make the default character width/height of the shell larg...
When you run the .exe, the SDL window appears, but so does a console window. How do I get just the SDL window by itself?
What configuration option should I be changing? Is there one?
I'm compiling with MinGW and using Eclipse Ganymede.
...
I'm starting out in visual c++ and I'd like to know how to keep the console window.
For instance this would be a typical hello world application:
int _tmain(int argc, _TCHAR* argv[])
{
cout << "Hello World";
return 0;
}
What's the line I'm missing?
...
Is there a way I can log the output of xm console in to some file?
Can I set something in the domain configuration file which automatically does this for me when I issue xm create?
I tried:
xm console | tee domU-console.log
... , but that does not fit in my case. I want to log the output asynchronously in background.
...
How to do it?
Is it possible to call a function from one F# code into C# without using a separated dll file or project?
...
Is there a way to show the console in a Windows Application?
What i want to do is something like that:
static class Program
{
[STAThread]
static void Main(string[] args) {
bool consoleMode = Boolean.Parse(args[0]);
if (consoleMode) {
Console.WriteLine("consolemode started");
// ...
...
I have a console application that contains quite a lot of threads. There are threads that monitor certain conditions and terminate the program if they are true. This termination can happen at any time.
I need an event that can be triggered when the program is closing so that I can cleanup all of the other threads and close all file ha...
I recently started a C# project (VS 2008) as a 'Console' project where I wrote a few libraries, test programs, etc. Now I'd like to add a couple of WPF windows, but it looks like console project won't let me do that. I'm coming from Java so this is a little strange. How can I add a WPF form (which I will instantiate my self from my "m...