console

How do I poke the flag in a win32 PE that controls console window display

I have an executable which is part of a batch process. This one executable opens a console window, which is annoying since it's useless to the end user and steals focus away from their active task. We can't compile a new version from of this EXE from source (easily). Is there an easy way to twiddle this setting in the PE? ...

Input event loop in a console application

Hi, I'm trying to make a little console application that is able to deal with keystrokes as events. What I need is mostly the ability to get the keystrokes and be able to do something with them without dealing with the typical stdin reading functions. I tried to check the code of programs like mplayer, which implement this (for stoppin...

Convert GUI C++ app to a console one

I have a GUI C++ application (Visual Studio 2008) that needs to be converted to a console one. I don't have any experience in C programming. Mostly I use .NET. Where do I start? ...

Ignore carriage returns in scanf before data.... to keep layout of console based graphics with conio.h

I have the misfortune of having use conio.h in vc++ 6 for a college assignment, My problem is that my graphic setup is in the center of the screen... e.g. gotoxy( getcols()/2, getrows()/2); printf("Enter something"); scanf( "%d", &something ); now if someone accidentally hits enter before they enter the "something", then the cur...

trying to pass file name from aspx page to console.exe

i want to pass the value of a lable or textbox in an aspx page to a console.exe application such that the if the value is sample.doc it changes to that. i am calling from the aspx page with string f = TextBox1.Text; System.Diagnostics.Process.Start("C:/DocUpload/ConsoleApplication1.exe", f); i have tried converting to string ...

actionscript - testing actionscript via command line

Hello, I would like to know if is there any easy way to test actionscript by using some kind of application like ruby's irb or javasctip spidermonkey where you can just open up your terminal and type the code straight away. This would be a good time saver when speaking of actionscript, since to test some syntaxes, classes, etc. you woul...

Attaching the console with the GUI in wxWidgets

Hi, I'm writing a wxWidgets GUI application, but it also uses some console objects. I need a way of displaying stdout and accessing stdin; the best way to do this, would be displaying the console as well as the GUI. This can be done if a user runs the program from the command prompt/shell etc, but the command prompt does not automatica...

Ant build scripts totally hangs, with no messages in console

I have build.xml for my project, but even this small piece of code <target name="init"> <tstamp/> <!-- Create the build directory structure used by compile --> <mkdir dir="${build}"/> </target> It doesn't run Console is empty but process is active. I still can terminate it over STOP button In same time I cannot debug...

rails - Redirecting console output to a file

On a bash console, if I do this: cd mydir ls -l > mydir.txt The > operator captures the standard input and redirects it to a file; so I get the listing of files in mydir.txt instead of in the standard output. Is there any way to do something similar on the rails console? I've got a ruby statement that generates lots of prints (~8k l...

Redirecting console to a string in a .NET program

How can I redirect whatever is written to the console to be written into a string? ...

C - equivalent of .NET Console.ReadLine

I need to accomplish the same behavior as .NET Console.ReadLine function provides. The program execution should continue when the user pushes enter key. The following code is not sufficient, as it requires additional input: printf ("Press Enter to continue"); scanf ("%s",str); Any suggestions? ...

howt to access COM port via script

Hello, I need to access COM port (console) via script to access our DSL modem. It should access in such a way that I can read all the messages printed on the console and i should also send commands to the console via script . Please let me know if it is possible in TCL or php . Platform : Windows XP. Also is there any way I can acces...

How do i supress keypress being printed to console in .NET?

Hello, I'm porting a small C++ console game to C# and it seems that I can't stop key presses from being printed to the console. In C++ I get the keystroke with this method, which also suppress the keystrokes from being printed to the console: bool Game::getInput(char *c) { if (_kbhit()) { *c = _getch(); return t...

how to ouput text to java console from servlet

I have a servlet. But it is not working as desired. Hence for debugging purposes, I want to print statements to the java console(the one that can be opened using the java icon in taskbar). However, if I use System.out.println("message"), it doesnt display in java console. Is there any alternative way where I can display messages to the ...

Zend Framework: How to load existing project into ZF's CLI?

In ZF you create a project by running this command: zf create project MyProjectName But how does one load a project that already exists? I don't see anything in the documentation that specifies a zf load project or zf set project or something like that. Thanks. ...

Ruby script/console and Ruby script/server using two different DBs?

Has anyone seen where script/console and script/server load two different databases (though both report using the same)? Here's the first output $ script/server => Booting WEBrick => Rails 2.3.5 application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2010-03-21 15:54:05] INFO WEBrick 1.3.1 [2...

Cakephp, Error when executing command cake extract in terminal

I get the following error when executing in Terminal the following command "cake extract": Error: Class ExtractShell could not be loaded. I have made sure that I'm in the right path and also all other commands I've executed work great like cake bake for example. Do you have any ideas ... ...

Visual C++ Enable Console

I created an Empty Project in Visual C++, but now I need the Console to display debug output. How can I enable the Console without recreating the project or show the output in the VS output window? Thanks in advance Attic ...

Is there any analog of TCPvcon which allows to close TCP connection on remote machine?

Hi, I started to use SysInternals suite, and it is great. But I wonder, whether there is any analog of TCPvcon, which allows to logon to remote machine, like psexec does, and then get list of TCP connections from there (similar to pslist functionality), and then to close some of connections (similar to pskill functionality). I am speak...

How can I read international characters from console

How can I read international characters from console in java? ...