console

In XCode, is there a way to disable the timestamps that appear in the debugger console?

XCode's debugger console makes it easy to see any debugging messages my app sends out using NSLog(), but it always sticks a timestamp prefix on them: 2009-08-30 04:54:48.128 MyApp[94652:a0f] some log message 2009-08-30 04:54:50.647 MyApp[94652:a0f] another log message ... I have no use for this prefix, and it takes up a lot of room. I...

How can I handle Ctrl+C in a Windows CE console application?

I need to make some clean up before closing my application, but SetConsoleCtrlHandler doesn't seem to be available for Windows CE console applications. Is there any alternative method for handling Ctrl+C in Windows CE 6? ...

Visual Studio Console Windows

I have been curious to know what is the purpose of having a console window in .Net? I have not seen applications that are console window based. Is there such a thing as a console based application? ...

How can I read input from console till a character is typed

I want to read input from a console for example Enter input: aabbbab execute the method when pressed Enter and keep asking for input and execute till a character is typed in. At the moment I can read an input and enter it execute it.Then I need to run a program again to enter a new input. ...

Slickest REPL console in any language

Many languages of REPL consoles with additional features like autocomplete and intellisense. For instance, iPython, Mathematica, and PyCrust all make some effort to go beyond a basic read eval loop. REPLs are particularly useful in languages where interactive exploration is very important, such as Matlab or R. I'm looking for inspirat...

Getting a console or error log from a Cocotron app

Does anyone know how to get a console or error log in Cocotron? In XCode if you go to preferences and under debugging you can select start console on startup but when you run the cocotron outside of XCode (in windows) no console pops up. I would like to try and get the frame rate but I don't know how to output to the console. Thanks! ...

Console alternative of kcachegrind?

Kcachegrind rocks and it's of my favorite tools, however from time to time I'm missing the ability to run it in terminal(e.g using ssh) on the remote server. I know it's possible to setup VNC or X-server forwarding but it's quite clumsy while I need something simple. Is there any kcachegrind console alternative(e.g ncurses based)? ...

How can I check if a Java program's input/output streams are connected to a terminal?

I would like a Java program to have different default settings (verbosity, possibly colored output where supported) depending on its use. In C, there is an isatty() function which will return 1 if a file descriptor is connected to a terminal, and 0 otherwise. Is there an equivalent for this in Java? I haven't seen anything in the JavaDoc...

How to get colored emails from crontab?

I call a Python script from crontab. The script does generates colored output using ANSI escapes but when crontab is sending the mail with the output I see the escapes instead of colors. What is happening is logic but I would like to know if it would be possible to generate a html message instead. I would like a solution that does no...

Command Line Parsing

I need a command line parsing utility. In the brief 10 second that I've spent googling, I found NConsoler. Can anybody recommend anything else? ...

Linux console keyboard handler

Is it possible to write a C program which works in XFCE's terminal until the user hits Esc-key? If yes, how? ...

Is there a technique to determine if a dos app was invoked via sentto vs a dos window?

In the case of a sendto invocation, I would like to keep the application open, after it completes, so the user can look at it. In the case of a dos window invocation, the user controls when the window closes. The platform is XP using msvc 6 ...

C# .NET Newbie Help...Best Practices

I am in need of some guidance of how to carry out a specific task I need to perform... I have a database table that contains requests made by users for excel spreadsheets. In that table there is a status column which indicates the step the request is in. I need to write a service of some sort that will be able to keep checking the sta...

C++ Console Progress Indicator

What would be an easy way of implementing a console-based progress indicator for a task that's being executed, but I can't anticipate how much time it would take? I used to do this back when I coded in Clipper, and it was only a matter of iterating through the chars '/', '-', '\', '|' and positioning them in the same place. Any way / l...

Are there any .NET libraries that draw a table in console (textmode)?

While writing a small C# application for myself I realized that it would be neat if I could easily draw tables in textmode. You know, like this: +-----------------+-----------------+ | Header 1 | Header 2 | +--------+--------+--------+--------+ | Data 1 | Data 2 | Data 3 | Data 4 | | Data 1 | Data 2 | Data 3 | Data 4 | | D...

Input on same line as output in c#?

For example: C:\>Input a number: 60 Where the output would be "Input a number: " and the input would be "60". How do I get these to be on the same line? EDIT: The problem that I'm having is that when I output "Input a number: " it automatically starts a new line, so the user inputs "60" underneath (on the next line) ...

How do I clear screen in IronPython console?

When we work with a regular windows command prompt we can clear the screen by typing cls command. How I can do the same in IronPython console (ipy)? ...

Showing multiple lines of text in a console application?

I need a way to show multiple lines of text (e.g. 1000 lines) in a console application, and be able to scroll through all lines. However, when I do something like the code snippet below, I can only see the last 100 or so lines in the console. for (int i = 1; i <= 1000; i++) { Console.WriteLine(i.ToString()); } My initial though was...

Build a web console for Xen domU instances.

I want to build a service to provide console access (eg. xm console domain) via a web browser to Xen virtual machines. Does such a program already exist? If not, where should I start? Slicehost offers this service. I'm just wondering how to go about cloning it or using whatever software that they did. ...

Ways to control text-mode console output with ruby

I'm interested in writing a text-mode "gui" application with ruby. This means I need to have a way to output text anywhere I want in the terminal, move cursor around and react directly to different keypresses. Using color would also be a nice plus. Is ncurses the only (or clearly best) way to go, or are there other options to consider? ...