console

Atomik MVC - Console plugin

Hi folks! php index.php generate about Atomik 2.1 Console PHP Warning: require(): Filename cannot be empty in /srv/www/vhosts/firedwire.com/httpdocs/atomik/app/plugins/Console.php on line 100 PHP Fatal error: require(): Failed opening required '' (include_path='.:/usr/bin/PEAR:.:/usr/share/php5:/usr/share/php5/PEAR') in /srv/www/vho...

Windows console logging to file loses tail end if application crashes; how to see tail end?

We build complicated console-based tools that produce a lot of commentary on the console. These tools process a lot of data and so runs are expensive and we don't like to do them more often than necessary, especially during testing where we already have to run them repeatedly. During such tests, we often log the result to a file to ca...

How do I color output text from Perl script on Windows?

I would like to color format the text printed to the console using the Perl print command. In my case the script will only be run under WinXP-DOS Command Line but it would be great if it was OS independent although I would rather tie it to WinXP than have to download a seperate package. ...

Question on Console.ReadLine() in C#

static void Main() { string str; str = Console.ReadLine(); while (str != null)//HERE! { str = str.Remove(0, 1); str = str.Remove(str.Length - 1, 1); string[] value = str.Split(','); int[] intval = new int[value.Length]; for (int i = 0; i <...

WriteConsole() weird characters?

I use this snippet to create a console fron inside a dll. That dll gets loaded in a game. CODE SNIPPET The console window creates fine. But when i write stuff to it, i just get stuff like "???D??". I know i have to use the printf() syntax. So i use wprintf("%s", "test"); Any pointers? ...

NSLog not printing to terminal

Ok, so I've been using NSLog in objective-C for awhile now to debug and I know it's supposed to print to the terminal whatever I put in the parentheses. For some reason, it just stopped printing to the terminal and I'm not sure how to fix this error. I was wondering what other people would suggest doing to fix this problem. I've only inc...

Java, console.readPassword adds extra line. How to delete it?

Hello! When i use console.readPassword() to read user passwords through console, there is always one line added to the console. How to disable this behavior or how to delete that extra line (and move the cursor after the last character in the line before)? What escape character to use? Thanks ...

Executing a command programatically in Eclipse console

From my Eclipse plugin, I want to execute a command and show the results in the Console view (and later do some formatting and hyperlinking and pattern matching, which is done via the org.eclipse.ui.console.consolePatternMatchListeners extension point AFAIK). My question is how to do this? In plain Java, I would use a ProcessBuilder. Do ...

How does VS compile console applications to show "Press any key to continue"?

Hi, When I develop a C# console application (which will run on a server) and I run it using Visual Studio, I get a "Press any key to continue" message before the program terminates. However, when I compile the very same C# code file manually using CSC, my program doesn't show that message and it terminates immediately after finishing i...

MVC-like design for console applications?

I find that writing web apps and WinForm apps generally come out a lot cleaner than when I write a console application. What do I mean by cleaner? Well the fact that the fact the UI (i.e. readline/writeline) is so intertwined with the logic code becomes horrible and the fact it is not event driven means that it is harder to get good ab...

JUnit test for System.out.println()

Hi. I need to write JUnit tests for an old application that's poorly designed and is writing a lot of error messages to standard output. When the getResponse(String request) method behaves correctly it returns a XML response: @BeforeClass public static void setUpClass() throws Exception { Properties queries = loadPropertiesFile("req...

What't the common idiom to avoid IE throw: Error: 'console' is undefined.

I install firebug and I'm done with my logs. I test it in IE and of course I've got "undefined" error. What's the common idiom to avoid this. I don't really feel like commenting all the console.log statements in my file nor to mock it. Well I'm not sure what to do. ...

How to update an older C extension for Python 2.x to Python 3.x

I'm wanting to use an extension for Python that I found here, but I'm using Python 3.1 and when I attempt to compile the C extension included in the package (_wincon), it does not compile due to all the syntax errors. Unfortunately, it was written for 2.x versions of Python and as such includes methods such as PyMember_Get and PyMember_S...

Echo off problem in console application (Linux)

Hello, I am facing a strange problem in my console application. First of all, the code snippet: main.cpp #include "DebugInterface.h" static sigset_t signalSet; static pthread_t CleanupHandlerThread; DebugInterface* debugInterface = NULL; void* CleanupHandler (void* param) { int32_t sig, err; err = sigwait (&signalSet, &sig)...

Creating another Window from code?

I'm currently working on a game and relaly want to add an external console to it (right now it's built into the main game window). What I would really like is to create a new Window which acts as the console with maybe a text box in the bottom to add new commands into it and a larger text box on top which outputs information. I'm using...

Check if output is redirected

I have a console application written in C# which processes some data then prints the results. Until the results are available there is a little animation ( / - \ | ) and progress percentage ( xx% ) which is constantly updating. Obviously if the user redirects the output of my application this will be printed to the text file where outpu...

Integrating GUI into console applications

Hi, I have two independent console applications developed in C++. I was asked to develop a GUI for both of them. In this GUI I collect some parameters that are needed to launch any of these applications. Anyone can give some orientation on integrating the console applications with this GUI? Could it be possible to launch the application...

How do you use the multi-line Console in Firebug?

The Firebug addon for Firefox supports a multiline Console, but how do you return values to show up in the Console's output? When I press "Run", all I see is a copy of my source code. ...

What is the Best Practice for Combating the Console Closing Issue?

After compiling console programs the console window closes immediately after running. What is the best practice for keeping it open? I've searched google loads, I'm used to codeblocks where you don't have to worry about it, but, I want to mess around with Visual Studio a bit and with VS, my console closes. All over the interwebz there ar...

TerminateProcess vs Ctrl+C

I have a console-mode program that uses SQLite3 to maintain a database file. It takes a while to execute, but it should be safe at any point to cancel, assuming that the database writes happen. (This is all under Windows) Is it any safer, from the point of a running program, to hit CTRL+C in the console than to have another program ca...