console

Creating a console in Java

When I try to use java.lang.System.console(), I get a null pointer. I can still write to out and read from in, but this only works when I run straight from my IDE. When I run the .jar file directly, nothing happens. How can I create a console like I'd see using std::cout for use in Java? Edit: I was hoping to just create one, rather tha...

Can Apache httpd be made to log errors to console instead of log files under Windows?

I'm doing infrequent development with Apache/PHP on my Windows machine so I've opted to run apache as a console process instead of a service. It would be nice if errors could be logged to the console window instead of a logfile so I can see them immediately. Can this be done somehow? It doesn't seem that apache has such a capability buil...

Errors/Warnings/Debug Info no longer appears in Debug Console

Hi Guys: This one is driving me crazy. When I run my App and open the Debug Console there is nothing there! Nope, not even the output from my NSLog statements. Before I would see a bunch of debug information starting with [Session Started ...] and ending with 'Terminating in response to SpringBoard's termination'. The Status Bar at the b...

How can I share dynamic data array between Applications?

Hi, I use CreateFileMapping, but this method was not useful,because only static structure can be shared by this method. for example this method is good for following structure: struct MySharedData { unsigned char Flag; int Buff[10]; }; but it's not good for : struct MySharedData { unsigned char Flag; int *Buff; }; woul...

console.log is not working in Android 2.1 emulator

i'm running one web application... in android emulator browser in one java script file i trying to output some string as console.log("android"); but i didn't got this log using adb logcat even i tried to start adb logcat firstly and then tun the app. but didn't got log message which i used in console.log is there any way so i can ...

get pure text form odt file in console

I am looking for a small linux tool that would be able to extract text from odt file. It just needs to be human-readable and it can have problems with complicated objects etc. It's almost a duplicate of this question but I need it to be small and have no dependencies on OpenOffice or X server I remember having a 1MB MS-DOS program tha...

Get close window message in Hidden C# Console Application

Hello everyone. I have a Windows Form that starts some console application in background(CreateNoWindow = rue,WindowStyle = ProcessWindowStyle.Hidden). Windows form gives me opportunity to stop the console application at any time. But I'd like to handle somehow the close message inside the console application. I tried to use hooking li...

Error logged in WebKit Web Inspector disappears because of page refresh

While hunting a Javascript error related to form submission. I saw an error appear in the Web Inspector then disappear immediately since the form submits and refreshes the page. Is there a console history or scrollback? How can I see what the error is? ...

Is there a Firebug console -vsdoc.js?

If not, does anyone care to write one? I would do it myself...but I don't have time right now...maybe next week (unless someone beats me to it). If you are bored and want to compile the vsdoc: Here is the Firebug API. Here is a blog post about the format for VS doc comments for intellisense. Here is an example vsdoc (jquery-1.4.1-vsdoc....

WPF Console.In is null

I'd like to display a WPF app's console so I can run scripts on my application. I have been using the ConsoleManager class in this thread. I'm not sure what happened, but now, I am unable to input any text. Anytime I call Console.ReadLine(), it immediately returns null. Turns out that Console.In is a NullTextReader. How can I make sure...

How can I execute a non-blocking System.Beep()?

In C# I can perform a Console.Beep(). However, if you specify a duration of say 1000, or 1 second, it will not execute the next line of code until that second passes. Is there any way possible to execute Console.Beep() in a non-blocking fashion so it will continue to beep and still continue executing the code below it while beeping? ...

How do I get rid of the console when writing GUI programs with gtk in C?

I'm following the tutorial: http://zetcode.com/tutorials/gtktutorial/firstprograms/ It works but each time I double click on the executable,there is a console which I don't want it there. How do I get rid of that console? Platform: windows XP. BTW I also have this trouble when right click on the icon: GLib-WARNING **: g_main_contex...

Console output window in DLL

Hello, I am trying to redirect the output from my DLL to an external console window for easy debugging. I have been told about AllocConsole but I am not able to reproduce it, i.e. the console window does not appear. My current environment is Visual Studio 2005. I tried the following example which is gotten off the Internet, AllocCon...

Need an example about console application which user can interact console window

Hello everyone, I need write a console application like as hiren boot screen: User can input a arrow key or a number for choosing. When a menu item is selected, I will fill a background for the selected menu item. Please give me some guideline or example. Thanks. ...

Python get raw_input but manually decide when string is done

I want someone to type words in the console, and autocomplete from a list when they hit "tab" key. However, raw_input won't return a string until someone hits [Enter]. How do I read characters into a variable until the user hits [Enter]? *Note: I don't want to use import readline for autocompletion because of OS issues. ...

WindowsForms difference to simple Console App

I currently started to "port" my console projects to WinForms, but it seems I am badly failing doing that. I am simply used to a console structure: I got my classes interacting with each other depending on the input coming from the console. A simple flow: Input -> ProcessInput -> Execute -> Output -> wait for input Now I got this bi...

Send stdin to a process from windows command prompt

In Windows I have console programs that run in the background with console hidden. Is there anyway to direct input to the programs console? I want to be able to do something like: echo Y| *the_running_process_here* to send Y to the process' stdin. ...

Output from external exe and my custom objects in powershell

(Sorry for strange title, haven't come up with anything better..) Background I use nunit-console to test my assemblies. It is called like this (simplified): function Test-ByNunit { param($assembly, $tempFile = 'c:\temp\nunit.xml') & <path-to-nunit-console> $assembly /nologo /xml:$tempFile @othparam } Test-ByNunit c:\temp\myAs...

Output redirection still with colors in PowerShell

Suppose I run msbuild like this: function Clean-Sln { param($sln) MSBuild.exe $sln /target:Clean } Clean-Sln c:\temp\SO.sln In Posh console the output is in colors. That's pretty handy - you spot colors just by watching the output. And e.g. not important messages are grey. Question I'd like to add ability to redirect it some...

Problem with System.Diagnostics.Process RedirectStandardOutput to appear in Winforms Textbox in real-time.

I'm having problems with the redirected output from a console application being presented in a Winforms textbox in real-time. The messages are being produced line by line however as soon as interaction with the Form is called for, nothing appears to be displayed. Following the many examples on both Stackoverflow and other forums, I can...