console

Trouble restoring stdout after being redirected to a child process that exits

Currently I have a main process that creates an anonymous pipe and a child process and then uses the pipe to redirect console output to the child process. The pipe is created with CreatePipe, the read handle is passed as the StdIn handle for the new process using CreateProcess, and stdout of the main program is redirected to the write h...

How can I colorize logger output in a rails 3 console

How can I colorize and possibly bold the output from Rails.logger in my rails3 application? ...

Is there a command line utility that can listen for OS-wide keystrokes and tell me via stdout?

I'm developing an app and I'd like to trigger functions in my app via keystroke combos when it's not in focus. Because I'm developing my app in AIR, I do not have access to listen to global Keystrokes. However, I can receive STDOUT from an application. So, I'm looking for a utility that can give me this ability. I'm looking for both Win...

split a console in two parts for two outputs

I'm creating a console application where I would like to have two outputs and one input. The reason would be so that one output is always visible. This is the first output Text flows upwards just like a regular console application, however... --------- This is a second output This is placed at the bottom of the console // also input go...

cakephp baking in windows 7

Hi, I'm new to cakephp so have just been working through the cookbook and am now working through "Beginning CakePHP from Novice to Professional" by Apress. I have got to the Bake section of the book but I can't seem to get it working in windows 7. I have added the path to my "Environment Variables" so I don't have to navigate to the lo...

Eclipse CDT using MinGW does not output in console

Hi, I have a Windows 7 64-bit PC and I am trying to install a free C++ IDE, so I chose to install Eclipse Helios with CDT. For g++, make and gdb I installed msys and mingw according to this tutorial: http://wiki.wxwidgets.org/HowTo:_Install_MSYS_and_MinGW_for_use_with_Eclipse_CDT The versions are: make: GNU make 3.81 g++: 4.5.0 gdb: ...

C# console window problem with _getch()

Hi, I have embedded a console window within my Windows application form using С# I have an application that runs in the console window. my c# project is a GUI to display the output of this and also to send parameters to it. Most is working fine except when a call to _getch() is made from my GUI to the console window it tends to freeze...

Java Console; readPassword, how does an array protect from determining the password value?

I was reading about the java.io.Console class in one of the java certification books, possibly I've missed something fundamental from a previous chapter, but can someone explain the below? It mentions, that the readPassword method returns a character array instead of a String, to prevent a potential hacker from finding this String and t...

Where can I find an implementation for a text/ascii table/grid generator?

Where can I find an implementation for a text/ascii table/grid generator? e.g. Given a CSV file such as this: Header1,Header2,Header3 Pizza,Artichoke dip,Bob's Special of the Day BLT,Ham on rye with the works, It would generate a nice looking text table such as this: Header1 Header2 Header3 --------------------------...

Referencing Firebug Console Inside of a Custom Javascript Object

I have several custom Javascript objects and want to do some debugging via the Firebug console inside of them. However, if I try to use console.log(), I get an error about console not being defined. I tried referencing console as window.console and it made no difference. When I run a check to see if console is defined, it returns false: ...

How to detect if Console.In (stdin) has been redirected?

I want to write a console application that have a different behavior depending if the input is coming from keyboard or from, say, a file. Is it possible? What's the most elegant way to do it in C#? ...

C# - how to close standard input and output streams on process exit?

I have a process that needs to launch a child process and communicate with it through standard input and output. The child process should be able to automatically terminate itself; however, I am having trouble closing the streams properly. Here is the relevant code from the child / "client" process: // This is started in a separate th...

How to remove scrollbars in console windows C++

I have been checking out some Rogue like games (Larn, Rogue, etc) that are written in C and C++, and I have noticed that they do not have the scrollbars to the right of the console window. How can I accomplish this same feature? ...

Using xterm to open a new console: How to while the current console is printing, to print on the new console also.

I'm using python right now. I have a thread that represents my entire program. I want to open another console window using os.system(xterm&) as a thread which works. The only thing is, is it possible to print to the new window while the other thread is printing to the older window? import sys import os def my_fork(): child_pid ...

Python Console Name Customization

Usually the Python console looks like this: >>> command Is there a way to make it look like: SomeText>>> command ...

how can i make a program run sillently? (without the console window appearing)

For example, in C#, you can make a program run without the black screen appearing...so I thought: since anything you can do with .NET you can also do with Win32, maybe there's a solution. Any ideas? ...

Redirecting console output to another application

So say I run my program: Process proc = new Process(); proc.StartInfo.FileName = Path.GetDirectoryName(Application.ExecutablePath) + @"\Console.exe"; proc.Start(); And then wish to output my console stream to this application, how would I go about doing so? So say I have: Console.WriteLine("HEY!"); I want...

Catch output from win32 Console program

Hi, please, is it possible to catch output from concole program? I would like to write GUI to console app, but I need to get its output. ...

Intricate File Access problem

I have written an Add-in for Windows Home Server Console that is supposed to copy and replace some files among other things. The problem is that one file is already used by HomeServerConsole.exe and therefore I cannot replace it with another. I get "Cannot access file because it's being used by another process". I'm not sure how to sol...

How to get execution time in rails console?

I want compare time of execution Post.all and SELECT * FROM posts (or some other statements) How can i get execution time of Post.all ? ...