console

c console window title

How to set the console window title in C? printf("%c]0;%s%c", '\033', "My Console Title", '\007'); This works only under linux, not in windows, Does anybody know a "cross-platform" solution? (of course not "system ( title=blah )") ...

How to get the return value of console app in a batch file?

I have a C# console application AAA.exe which can return an integer to indicate the result static int Main(string[] args) { . . . if(case1) return -1; if(case2) Environment.Exit(1); return 0; } I will call AAA.exe in a batch file and need the return value AAA.exe /p="param1" My question is: how t...

Why doesn't System.out.println work? (in Java)

I want to print something in console so I can debug it. But for some reason, nothing prints in my Android application. How do I debug then? public class HelloWebview extends Activity { WebView webview; private static final String LOG_TAG = "WebViewDemo"; private class HelloWebViewClient extends WebViewClient { ...

What's the escape key-sequence for System.Console.In.ReadToEnd?

I tried using System.Console.In.ReadToEnd (for code-golf, as it happens), but I can't work out what the key sequence is to get it to return from the console. ...

System.Drawing.Color in console application

Hello, Simple question from .NET beginner. How to work with colors in console application? VS do not let me declarate System.Drawing.Color namespace. I need to assign color for one method in console application. Regards, Tomas ...

How to convert EOT font to TTF

Does somebody know a font conversion utility which is able to convert EOT fonts to ttf? ...

include separated exe application into VS Console project.

Hello, I have created console application on VS 2008, the console app use another exe file(using command line). I would like to add that exe file to my console application. Now I have one problem, if I build project I need to copy exe file manually to build folder. Regards, Tomas ...

How to filter the xcodebuild command line output?

Running xcodebuild from the console will bring you very verbose output and I wasn't able to locate any options for limit its output in order to display only warnings and errors. I'm looking for a way to capture the xcodebuild output and filter it. It would prefer a Python solution that will work with pipes but I'm open to other approach...

Why isn't my method fully working? (iPhone SDK)

I have a method here that is in my code: -(IBAction) actionButtonPressed: (id) sender{ NSLog(@"%@",actionButton.titleLabel.text); if (actionButton.titleLabel.text == @"Begin Recording"){ [actionButton setTitle:@"Finish Recording" forState:UIControlStateNormal]; [actionButton setTitle:@"Finish Recording" forState:...

Prevent a console app from closing when not invoked from an existing terminal?

There are many variants on this kind of question. However I am specifically after a way to prevent a console application in Python from closing when it is not invoked from a terminal (or other console, as it may be called on Windows). An example where this could occur is double clicking a .py file from the Windows explorer. Typically I ...

Android Application Development O'reilly MJAnddroid Example Code

Good Afternoon... I recently bought the book "Android Application Development" from O'reilly and I'm at a section where it asked me to download MJAndroid Code and import into Eclipse... Here is the link http://examples.oreilly.com/9780596521509/ I was able to downloaded / import it but now I'm stuck... Here is what it saids... "You...

How to I disable and re-enable console logging in Python?

I am using python logging module and I want to disable the console logging for some time but it doesn't work. #!/usr/bin/python import logging logger = logging.getLogger() # this gets the root logger # ... here I add my own handlers #logger.removeHandler(sys.stdout) #logger.removeHandler(sys.stderr) print logging.handl...

Running a C/C++ console application inside a C# windowed one?

Hello everyone Right now, I want to develop a simple application, so I decided that the fastest way to code would be C#.NET, but right now, I'm having a hard time to implement one of the features I need. What I'm trying to do, is to run a C/C++ console application inside the window of my C# application, like in Unreal Frontend with the...

Changing default encoding of python ?

I have many "can't encode" and "can't decode" problems with python when I run my applications from console. But in Eclipse Pydev IDE, default character encoding is set to utf-8 and I'm fine. I searched around for setting default encoding, and people say that python deletes the sys.setdefaultencoding function on startup and we can not us...

How do you save the cursor attributes without saving position with escape sequence?

printf '\e[s' will save the attributes and position of the cursor, so that the script can reset them using printf '\e[u'. But I only want to save the attributes. In other words, I want to change the color of text, print some text, and then restore the color settings at the end of the script. If I use the [s and [u sequences, I will be...

Ruby IRB output is messed up in the console on Windows 7

I am getting very strange outputs from my IRB console. Here it is: irb(main):001:0> File.dirname(__FILE__) => ←[0;31m"←[0;0m←[0;36m.←[0;0m←[0;31m"←[0;0m Seems like an encoding issue, right? I am not sure why this is happening. Any ideas how to fix it? ...

howto : output utf-8(kannada) characters in windows terminal using java

am working on a java(tomcat) app. that sometimes writes to stdout. But I notice that indic languages(say, kannada) turn out as ?????? characters on the std. windows console(terminal) on Windows Vista (SP1 Home premium 64-bit). I know that I could run tomcat from within emacs(GNU Emacs 23.1.50.1 (i386-mingw-nt6.0.6001)) so I could see th...

Looking for an efficient Java Swing based console

Hi everyone, I'm looking for a highly efficient Swing Java component which I can just plug into my application UI. I already tried using the classes within Swing such as JTextArea with no avail; they simply aren't high-performance enough and have any crippling drawbacks. Additionally, it'd be nice if it had standard console features such...

Get BlackBerry simulator to print to command line/console

I would like to have the BlackBerry simulator print to console so that I can debug with out an IDE. I do all my development from Linux with bb-ant-tools and have the emulator running on windows (on a separate computer). I don't have eclipse or the jde on windows, just the emulator. --edit 02/28/10 After much searching it appears I need...

Eclipse (STS) + Maven

I basically have 2 questions: Is there a way to invoke maven console from eclipse? (where I could write eclipse:eclipse, and it started building eclipse project) Where does STS unpack it's maven? I'd like to add that path to env variables, so that I could use it from my windows console. ...