console

Console Application

Edit: I don't know what this user originally wanted, and hopefully they'll edit their question to let us know, but otherwise, let's use this question to answer (or give links to) the following common console window issues: How do you capture the output of a console application in your program (for instance, running a build process and...

How to read a line from the console in C

What is the simplest way to read a full line in a C console program The text entered might have a variable length and we can't make any assumption about its content. ...

is it possible to create DLL for both win32 console and MFC GUI

is it possible to develop DLL for both win32 console and MFC GUI. If yes please explain. What i want to do is to create dll that contains certain API's for both win32 console and MFC GUI. ...

get users by group in sharepoint

can anyone show me how to get the users within a certain group using sharepoint? so i have a list that contains users and or groups. i want to retrieve all users in that list. is there a way to differentiate between whether the list item is a group or user. if its a group, i need to get all the users within that group. im using c#, and...

"The handle is invalid" when running .net console via java

Hi, I'm trying to run dot net console application via Java : process = Runtime.getRuntime().exec(commandLine); I get the following output: Detecting The handle is invalid. when running it directly via the console (windows) there is no problem: Detecting 100% Done. 100% I'm running more applications in this form but have no prob...

Starting process in new Terminal window on Mac

On Windows I can do CreateProcess(..., CREATE_NEW_CONSOLE, ...) and my child process (which is console app, not GUI) will be launched in a new window. What is the easiest way to emulate this on Mac OS? ...

Console application leaves cmd.exe set size.

I have written a console application that sets the size of the console and output buffer. My problem is that after the program ends I cannot resize my cmd.exe window the way I did before. After the program sets the size of the window it retains that size no matter what I do afterwards. ...

Making CreateProcess inherit the console of the calling process

When I call CreateProcess in Windows, the new process doesn't seem to inherit the console of the calling process. I made a test program that runs "ruby xtest", xtest being a script that writes "hello" to standard output. I ran this test program from Emacs, and get no output. I also tried the following code calling GetStdHandle, but ag...

How do I handle EndProcess events in a Vista Console app?

I have a console application. In XP, I can use SetConsoleCtrlHandler() to register a callback that receives CTRL_LOGOFF_EVENT, CTRL_C_EVENT and a few others. It works great. When the callback is called I can cleanup before I return from the call. Problem is, SetConsoleCtrlHanlder() is not supported in Vista. Now what? ...

What is the deal with the unicode character 首(U+9996) and how java/mysql deal with it and its friends?

Man, this character encoding hole just keeps on getting deeper. Sigh. Ok. Check this out: I have a java String that contains the unicode character U+9996 (that's what I get if I do codePointAt()). If I look at it in the debugger expressions panel (in eclipse) then all is well and it looks like "首". However if I print it out to the conso...

Do you write interactive console applications?

I believe people still write a lot of console applications, including interactive ones, especially small utilities and administrative interfaces. Mostly for sake of simplicity. Do you write interactive console applications? Do you think it should be even easier than already is? U: for clarity, let's define 'interactive console applicat...

How can I ensure atomicity of a get-and-set operation to redirect Console.Out for logging console output?

I need to intercept the console output stream(s) in order to capture it for a log but still pass things through to the original stream so the application works properly. This obviously means storing the original Console.Out TextWriter before changing it with Console.SetOut(new MyTextWriterClass(originalOut)). I assume the individual op...

How to write a console-application with windows on a terminal in Ruby?

I want to write a simple chat-client in Ruby for the terminal. The Problem is, that I need two separate "windows", one for the chatlog and another for the input prompt. I dont have a clue how to do this. I watched (n)curses and some other ruby-libs, but nothing gives me this functionality. .------------------------------. | Mike: Hi Je...

PHP: Messaging/Logging to Eclipse Console?

Is it possible to send messages from a PHP script to the console in Eclipse? Has anyone attempted this already? I'm not very familiar with how the console works, so I'm not sure if there is a standardized method for communicating with it. ...

How to grab parent process standard output?

I'm writing an utility (http://reg2run.sf.net) which in case execution without arguments works as windows application (shows OpenFileDialog, etc), otherwise - as console application. So, in first case I don't want to show a console window, that's why project is Windows Application. But in second - I need to show it, and it's created wit...

WPF problems refreshing textblock bound to console.stdout

I am building a small wpf app in C#. When a button gets clicked a third party dll function constructs a tree like object. This object is bound to a treeview. This works fine but takes a bit of time to load. As the dll function constructs the object it prints progress info to the console. I want to redirect this into a TextBlock so th...

Speeding up text output on Windows, for a console

We have an application that has one or more text console windows that all essentially represent serial ports (text input and output, character by character). These windows have turned into a major performance problem in the way they are currently code... we manage to spend a very significant chunk of time in them. The current code is ...

How do I disable log4net status messages to the console?

I am using log4net in my .NET 3.5 console application and would like the log messages I generate to be seen in both the console standard out and the RollingFileAppender. The file output is working like a charm, but I am seeing a stream of status messages flowing to the console standard out when I execute. I would like to skip all the sta...

Best font for terminal

Hi, I like to find some new/interesting fixed width fonts for terminal console. We all know Lucida / Courier, what else? Anyone? So, the winner is Consolas (which indeed is built in in new windows7) Jeff had good topic about that: Other interesting fonts are: * Inconsolata * Proggy Clean * Terminus * 6x13 (if you need small font )...

console print w/o scrolling

hey guys i seen console apps print colors and seen apps such as ffmpeg print text over itself instead of a new line. How do i print over an existing line? i want to display fps in my console app either at the very top or very bottom and have regular printfs go there and scroll normally -edit- I need this for windows but this is meant to...