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...
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...
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...
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...
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 ...
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...
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...
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?
...
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....
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...
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?
...
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...
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...
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.
...
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.
...
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...
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.
...
(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...
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...
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...