console

Quickest method to package a Java console app

I've got a very small set of classes built up in a custom package hierarchy with one console app class that employs them. Everything works fine from JCreator and from a command prompt. I'd like to build a second console app that re-uses that same package. As a Java newbie, what is the quickest, dirtiest method to do that? My main con...

`tee` command equivalent for *input* ?

The unix tee command splits the standard input to stdout AND a file. What I need is something that works the other way around, merging several inputs to one output - I need to concatenate the stdout of two (or more) commands. Not sure what the semantics of this app should be - let's suppose each argument is a complete command. Exampl...

Execute and Capture one program from another

In win32 programming in C: Whats the best way to execute a win32 console program within another win32 program, and have the program that started the execution capture the output? At the moment I made the program redirect output to a file, but I am sure I must be able to open some sort of pipe? ...

Console2 and Ipython output issues

I've been using Ipython for my command line on XP for, oh... ages! However, being a sucker for the eye-candy I always wanted the console window to be a little cooler e.g. like a Terminal window on Linux. Today I found Console2 and my heart was filled with joy... However, there is something rotton in the state of large / multi-line outp...

GCC / C how to hide console window?

**C newbie alert** How do I compile a C app so that it runs without showing a console window on Windows? I'm using Windows XP and GCC 3.4.5 (mingw-vista special r3). I've googled this exhaustively and I've come up with the following which, according to what I've read, sounds like it's supposed to do the trick, but doesn't on my system:...

Can terminals detect <Shift-Enter> or <Control-Enter>?

Is it possible for the terminal to detect < Shift-Enter > or < Control-Enter > keypresses? I am trying to configure vim to do key mappings that use these sequences, and while they work fine in gvim, they don't seem to work in any terminal console. The curious thing is that although < C-Enter > is not detected in vim, mapping < Enter > ...

Grab console output launched with elevated privileges

I'm writing a command-line tool which requires privileges elevating. This can be successfully implemented using manifest. But if this tools is launched from cmd.exe or Far Manager (far.exe), a new console window is created. So all tool console output is written to it and is lost on close. So my idea is about implementing a fork, where ...

CakePHP Gurus: Console cake command not finding -app path correctly?

I've installed the CakePHP core files in this folder: /home/iopener/webapps/cake_1.2.1.8004 I've got my app installed here: /home/iopener/webapps/Smasholi.com/app The cake console command is in my path, and runs fine, but it seems to be ignoring any attempt to point it to the correct -app folder. If I run 'cake' from inside the app f...

Horizontally scroll a text-based/console program

I am trying to use TestDisk (partition and file recovery program) to recover some files that I have lost. TestDisk runs as a text-based/console program and prints a long list of deleted files, one per line. Each file is listed as it's path and because I am running this from a rescue live linux cd, I am limited to a 80 character console. ...

PHP Console that doesn't require heavy installation or a desktop app?

I'm looking for clean way to break my current habit of using print commands in PHP when I want to see what's happening. I am aware of options such as Zend Debugger but I use Coda for development and I'm not interested in mixing other software or having to do server commands. I just need a console that can be added to my codebase and th...

How do you clear the Java Console?

I have output messages displayed on the Java console for an application that started using webstart. Instead of the user manually clearing message, is there a way of clearing console messages in code? These messages are printed at the rate of about 1000 per second and seem to end up using too much memory, i could have stopped the printi...

Firebug: Accessing in the console an object you just "looked at" in the DOM Inspector

You have a console.log(o) in your code. Now in Firebug you can click on the object in the console, which takes you to the DOM inspector. I thought there was a way to then access from the console command line that object you just inspected with $0, but it doesn't seem to work. Maybe something changed in Firebug, or I don't remember thi...

Win32 programming hiding console window

Im learning C++ and i made a New program and i deleted some of the code and now my console window will not hide is there a way to make it hide on startup without them seeing it ...

How can I get the color settings of another console window?

I copy the output of a console window to my console window. Now I want to copy the text's color as well. How can I do that? Update: This should be possible using ReadConsoleOutputAttribute but I'll just use non-coloured output. ...

How do you get console input and output in a Windowed C++ project?

I would like to make a debug system in C++ where I can get input from a console and output. Output is the most important, but I would also like to get input to be able to change settings during program execution. Does anyone have any good methods on solving this dilemma? ...

How to pass arguments when debugging a dot net application

Hi, I have an command line that uses arguments, I have no problem with this, but each time I want to test the application, I need to compile it, run the CMD, call the application with the parameters from the CMD, because I didn't find any solution that let me dynamically pass arguments to the console in Visual Studio Any idea about that?...

Does anybody know how to launch windows from a console app using QT?

I'm learning c++ and QT and would like to be able to launch windows from a console application. Is this even possible? ...

Is it possible to get a copyright symbol in C# Console application?

Is it possible to add a copyright symbol or other "special" symbol in any way in a C# console application? ...

Why do I need to convert console input to a specific data type?

Looking for more help on converting to doubles, integers, and decimal format when doing calculations. EX: ...Console.Write(" INPUT TOTAL SALES : "); ...userInput = Console.ReadLine(); ...totalSales = Convert.ToDouble(userInput); I'm not completely understanding why I needed to convert such to a double, why it couldn't just be C...

Is there a good way to use Console.ReadKey for choosing between values without doing alot of conversion between types?

Im using Console.ReadKey() to choose from a number of options that varies from time to time. Before this initial code snippet there is a for loop that counts occurances into counter variable of type int. The point is to use Console.ReadKey() to get an int. int choice = ReadKey(); Console.WriteLine(""); if (choice < counter) { mail...