console

How to check if program is running in local console?

In Windows Server 2003, how I can check if my program is running in local console ("on the screen of the server machine") instead of remote session? I'm using Delphi Win32, so any Windows API based method should work.. ...

Can Biztalk run a console application?

Howdy, I am writing a C# console application that takes a binary file, rips it apart, analyzes it, and stores the data into a database. We want to use BizTalk to orchestrate watching when a new binary file is placed in a directory and calling my application with the file name/names to be parsed. Can BizTalk run a command line pr...

Where does Console.WriteLine go in Debug?

I found this question, but what I want to know is different - does the output from Console.WriteLine go anywhere when debugging? I know that for it to go to the output window I should should Debug.WriteLine() or other methods, but where does the standard Console.WriteLine() go? Edit When debugging, you don't see the black console window...

How can I detect Gnome Terminal?

I am writing a console application which makes use of the F1 key (for help). Unfortunately, while Konsole (of KDE) doesn't use this key, Gnome Terminal does, so the F1 key becomes inaccessible to my application. I don't think there's a way to detect whether the F1 key is already mapped in the GUI side of things (Gnome Terminal), but if...

pConsole.StartInfo.RedirectStandardOutput and pConsole.Exited event (c#)

Hi, I have a GUI application that executes (in a new process) "console" applications and parse the output. To redirect the Output i set the pConsole.StartInfo.RedirectStandardOutput to true. I also subscribes to the event pConsole.Exited. The problem I see is that I have to use Thread.Sleep() in the Exited event handler to get the last...

How can I make Eclipse output std:out to a standard windows console

Hi, As eclipse users know, eclipse captures the output of std out and err by default and dumps it into the console that is integrated with the IDE. I would like eclipse to just use a standard windows cmd instance to display std:out and std:err by default, the way most other IDE's do. Does anybody know how to set this up? ...

Is there a way to the hide win32 launch console from a Java program (if possible without JNI)

You launch a java program from a console (maybe using a .bat script). I don't want the console to remain visible, I want to hide it. Is there a simple way to do this ? Without JNI ? Thanks. ...

Unicode Console Application in Delphi 2009

How can I create unicode console application with Delphi 2009? If I do like this: {$APPTYPE CONSOLE} uses SysUtils; begin writeln('öüğşç سيمانتت'); end. I get the following: ougsc ??????? ...

How to disable console options.

Is it possible to disable the options dialog box for a .net console application? Or somehow keep the user from changing the console properties? ...

Interactive console using Pydev in Eclipse?

I'm debugging my Python code in Eclipse using the Pydev plugin. I'm able to open a Pydev console and it gives me two options: "Console for currently active editor" and "Python console". However none of them is useful to inspect current variable status after a breakpoint. For example, the code stopped at a breakpoint and I want to inspec...

Logging status of application to console window

I am currently refactoring an application that prints its status to the console window. At the moment I am doing something like this: Console.Write("Print some status.....") //some code Console.WriteLine("Done!") Now while this works fine, all the logic is hidden between console.writelines and I find makes it very hard to read. ...

How do I build a VB6 Console App

I did some googling to try to answer this question but even after that I'm not quite clear about something. Is it possible to create a console app from VB6? I've got a VB6 app that doesn't put up a window. I always assumed that it was a console app. However, I want to be able to use the Windows API SetConsoleCtrlHandler function fr...

why does this happen (see image)?

Why does the following have the effect it does - it prints a terminal full of random characters and then exits leaving a command prompt that produces garbage when you type in it. (I tried it because I thought it would produce a seg fault). http://s4.tinypic.com/r9qxbt.jpg #include <stdio.h> int main(){ char* s = "lololololololol";...

Windows default size for console application

While testing a console app, I set the properties of the console window to be only 3 lines high. This change has somehow stuck, meaning that new console windows default to 3 lines high. If I create a new shortcut on the desktop, and point it to cmd.exe, the window that opens is 3 lines high. Of course, I can alter this value using th...

Polling the keyboard in python

How can I poll the keyboard from a console python app? Specifically, I would like to do something akin to this in the midst of a lot of other I/O activities (socket selects, serial port access, etc.): while 1: # doing amazing pythonic embedded stuff # ... # periodically do a non-blocking check to see if # we...

Win32 console processes in VISTA - 10% CPU, but VERY SLOW

I have a Win32 console application which is doing some computations, compiled in Compaq Visual Fortran (which probably doesn't matter). I need to run a lot of them simultaneously. In XP, they take around 90-100% CPU together, work very fast. In Vista, no matter how many of them I run, they take no more than 10% of CPU (together), and ...

Stuck on GenerateConsoleCtrlEvent in C# with console apps

I'm having the hardest time trying to get this to work, hoping one of you has done this before. I have a C# console app that is running a child process which inherits its console. I want a ctrl-c caught by the outer app to be passed along to the inner app so that it can have a chance to shut down nicely. I have some very simple code. I...

C++ Console Breaking

Hi all, Wondering what the best way to trigger a function ( so I can perform a graceful exit ) in a C++ console application on Ctrl+C is? ...

Java console pretty printing: returning to the start of a line

Hello In Java, how can I return to the start of a line and overwrite what has already been output on the console? System.out.print(mystuff+'\r'); does not appear to work. thanks in advance ...

Colors in debug console

Looking at this LINQ demo: LINQ Framework Overview When going in debug mode, the output have colors in it. I'm using the same ObjectDumper class and I only have the black/white console window. How can I have the same results in the console window? Thanks ...