console

How do you clear console screen in C?

Is there a "proper" way of clearing a screen in C for a console application? (Besides using:system("cls")) ...

How can I print to the console in color on Mac OS X in a cross-platform manner?

How can I output colored text using "printf" on both Mac OS X and Linux? ...

How to allow installation in a custom target directory and suppress auto-start

Hi, I've developed a VB.NET console application and tried to use the Build | Publish menu option in Visual Studio 2008 to create a Setup. It works fine except two things: - when I run the Setup on a Windows 2003 Server, it installs the application in the C:\Winnt\profiles\\Local Settings\Apps\2.0 directory. How can I configure the setup...

Problem with console.

I am just learning how to work with threading mechanism in C#. I took a example from msdn and altered it to design a simple game like this. But the problem is the while loop in DoWork method is reading keys even before DoWork Method is called from main program. I,e. When you run the program before "Go:" appears on the screen if you ty...

How to run ant from an Eclipse plugin, send output to an Eclipse console, and capture the build result (success/failure)?

From within an Eclipse plugin, I'd like to run an Ant build script. I also want to display the Ant output to the user, by displaying it in an Eclipse console. Finally, I also want to wait for the Ant build to be finished, and capture the result: did the build succeed or fail? I found three ways to run an Ant script from eclipse: Ins...

Java console applications: Is System.out still the way to go?

Using System.out (and related) always seemed awkward because of the public field and now with the latest Netbeans gives a blatant "Statement should be removed" hint. Hence my question: Is System.out still the preferred way to write to the console or is there any other API which should be preferred? EDIT: I don't want this for logging, ...

How do i get menu events from a menu item in the system menu of a console window?

I have added a menu item to the SystemMenu of the console window of my application which i created using the AllocConsole() function. but I could not figure out how to process the events for the menu items I've added. How can i process those menu events? Thank you ...

Output to console while preserving user input in ruby

I have a ruby script that is simultaneously and asynchronously receiving and displaying messages from a server, and allowing user input on the console. When a message is received, it is currently being written in the middle of what the user is typing. The input itself isn't garbled, but it looks horrible. Ideally, it would save the users...

Console windows that cannot be killed by closing or via Task Manager

When I run a test harness through the Visual Studio 2005 debugger, it creates a console window every time I run it. In the past, the console window would close automatically when the test harness process terminated, but now I'm finding that the console window is hanging around afterwards. After the test harness terminates: I cannot c...

Detect whether stdin is a file or console using .Net

Possible Duplicate: How can I determine whether Console.Out has been redirected to a file? Is there a way of telling whether the stdin stream to a console app is coming from the console or from a file using .Net? I'm writing an app that should read from a file on the stdin if there is one but ideally shouldn't read from the s...

Does a Rails 3.0.0.beta app only see bundled gems in the console?

I have a library that I'm trying to get working with rails 3 (specifically feedzirra) which I can require ok in irb but it breaks the console in my app with the following error: http://pastie.org/855976 ...

WinForms + commands from console in C#

Hi, I've read a few topics about programs that combine WinForms and console applications but it seems my question hasn't been solved yet. Is it possible to run a program from cmd-line and to be able to control the app via forms and via cmd-line commands? It means: for ordinary users of the app to control the app via (win) forms, for...

Sequential workflow console application template missing in VS2010 Ultimate Beta2

Hi, I am using VS2010 ultimate Beta2 and under Visual C# -> Workflow -> I don't see the Sequential workflow console application or state machine console application Could someone please advise why these are missing in VS2010. I am able to see them on VS2008 ->Workflow. Thank you ...

a console code editor with CUA (ctrl-x ctrl-v ...) key bindings (unlike vi)

I'm searching for a console code editor with CUA key bindings (ctrl-x c v etc.) Right now i'm toying mcedit but i don't really like it. My desired features are: * be fast * CUA key bindings (ctrl-x c v etc.) * toggle show line numbers * find/replace/goto line * bind custom keys to action( ctrl-shift-arrowdown to double the curent line et...

Visual studio debug console sometimes stays open and is impossible to close

Hey, EDIT #3 : Microsoft has released a 'fix' to this problem which is available here. I haven't had the time to test it, but I those who want to are welcome to leave their feedback here ! Sometimes when I run an application from Visual Studio and it crashes or I stop it using the stop button in the debug menu (Debug->Stop Debugging (S...

How do I stop a Java library from printing to the console?

I am using a library that prints a bunch of superfluous information to the console when I reference it. Is there a way to silence the output of the library? ...

Oracle Application Server 10.1.3.

Hi, How do we secure OAS administration em console and not expose it to the outside world. Or in other words how do we hide certain pages from displaying. Something like it should be accessible only by localhost and not by the domain name or the ip. Thanks ...

Java: How to detect (and change?) encoding of System.console ?

I have a program which runs on a console and its Umlauts and other special characters are being output as ?'s on Macs. Here's a simple test program: public static void main( String[] args ) { System.out.println("höhößüä"); System.console().printf( "höhößüä" ); } On a default Mac console (with default UTF-8 encoding), this prin...

Read from Console in F#

Does anyone know if there is a builtin function for reading from the console likewise to the printfn function? The only method I've seen so far is using System.Console.Read() but it doesn't feel as functional as using a construct like printfn is. ...

Console or Graphical Game Design?

I am starting to get into programming as a hobby, I had several classes in JAVA/C# at school and would like to get into game programming. Honestly, this is just for myself. I am not looking to fast track the next A+ game, just something I can work on during my downtime at work. I have already decided on C# using SharpDevelop at work and ...