console

git - how to search for through commit messages using command line

Is there a way to search through commit headers in command line? ...

How to redirect process output to System.String

Hi I am calling Java process from .NET application and I need to redirect console output to System.String to do some later parsing. Please advice. I would appreciate short code example. public bool RunJava(string fileName) { try { ProcessStartInfo psi = new ProcessStartInfo(); psi.CreateNoWindow = true; ...

Move up one line in console (Pascal)

Hey all. I'm sitting at college making a noughts and crosses game while everyone else is learning the basics of Pascal. I can print the 2D array denoting the board into the terminal just fine, but what I want to do is update the board everytime a player adds a nought or cross, or moves their cursor around. To do this, I want to over-wri...

C# Console application - How to tell when an application is closing?

Hi, So i have a program that needs to do some cleanup before it exits, even if it is a forced exit. I know, hitting the power button is a forced exit where no cleanup can happen, but that would cause other, bigger issues too. The Program hooks into a number of events to take care of the cleanup. My issue is that this does not work prop...

Eclipse Console problem

Up until this morning Eclipse has always had the console tab open upon startup but all the sudden its nowhere to be found. Does anyone know how to add it back in? Thanks in advance. ...

Finding out if the user manually closed the console window by clicking the red X in C#

Hey everyone, I'm working on a project that calls a console window to process some data based on passed in arguments. What I would like to know is how I can check to see if the user clicked on the red X within the console app. Is there an event I need to handle? Any advice would be greatly appreciated. This is being done using the .NET ...

Failed to create a window when launching it through reflection from the console app

Im trying to launch a dialog by invoking several methods from a windows forms assembly. My app is a console app. All the execution logic goes well and without exceptions, but the window is not launched. Is it a known issue that you cant launch a windows form from a console app? ...

symfony doctrine data-dump and reload wont't work

Hi, I have a database built by Doctrine from schema.yml which I want to modify. Thus, first I saved the data using doctrine:data-dump command. Afterwards I wanted to check if it really can reload data, so I called the doctrine:build --all --and-load command. It successfully rebuilt the database, however when loading data from data1.yml...

Weird output during JVM application execution in Eclipse - how to debug?

Hi, I've encountered weird Eclipse console output during my application execution. I'm almost 100% sure that it's my application's fault, but I couldn't find any information on how such output should be interpreted. After printing those characters, Eclipse freezes. Screenshot here My bet is problem with thread synchronisation, but how...

Failing to write german 'umlauts' (äöü) from console to text file with java.

Hi, currently I'm desperately trying to write german umlauts, read from the console, into a utf8 encoded text file on windows 7. Here is the code to setup the scanner: Scanner scanner = new Scanner(System.in, "UTF8"); Here is the code to read the string: String s = scanner.nextLine(); Here is the code to write into a file: ...

Running .class file with a .java file

I have a ListTester.java file in which I've created with some unit tests in there to check the built in List class in Java. I have also been given a List.class file to have the junit tests check against to make sure they are correct. However, i'm not sure how to make sure the .class file is utilized by my .java file when it runs the ...

Capturing console stream input

Hi! I would like to make a console application (c# 3.5) which reads stream input. Like this: dir > MyApplication.exe The app reads each line and outputs something to the console. Which way to go? Thanks ...

fork() and STDOUT/STDERR to the console from child processes

I'm writing a program that forks multiple child processes and I'd like for all of these child processes to be able to write lines to STDERR and STDOUT without the output being garbled. I'm not doing anything fancy, just emitting lines that end with a new line (that, at least in my understanding would be an atomic operation for Linux). F...

Shell application in Vim window

I'm searching a way to start console application in vim window. So I could open python & php interactive shell in it. It would be very handy. I want something like :10 sp !python ...

reading two integers in one line using C#

i know how to make a console read two integers but each integer by it self like this int a = int.Parse(Console.ReadLine()); int b = int.Parse(Console.ReadLine()); if i entered two numbers, i.e (1 2), the value (1 2), cant be parse to integers what i want is if i entered 1 2 then it will take it as two integers ...

Java: Outputting text file to Console

I'm attempting to output a text file to the console with Java. I was wondering what is the most efficient way of doing so? I've researched several methods however, it's difficult to discern which is the least performance impacted solution. Outputting a text file to the console would involve reading in each line in the file, then writi...

redirect and get the output of console of eclipse to string or output text java

i tired to redirect the output of eclipse to an output text , the principale idea is to get the output of eclipse console , th result is the maven description, i want to redirect the output such as hudson console in an output text ...

Using JTextArea to simulate a text console

My objective here is to obtain a console-like-behaving component in Java, not necessarily in JTextArea, but this seemed like a logical thing to try first. Output is simple enough, using the methods provided by the JTextArea, but input is another thing. I want to intercept input, and act on it - character by character. I've found some exa...

How to Log Console Screen into a Text File ?

Possible Duplicate: Mirroring console output to a file I've a console application in C# and I want to Log into a text file every text appears on the screen. How to do that ? Unfortunately this thread is closed despite of my comment about the Mirroring console output to a file. The accepted post as answer by that thread IS NOT...

Create HTTP post request and receive response using C# console application

I need to post data to a URL (https://somesite.com) to download file in responseStrem based on the parameters I posted. How can I do that using a C# console application? Parameters: filename, userid, password, type ...