console

How can you write log files in Objective C?

If I'm doing mass operations inside objective C, and a lot happens in the console... I cannot see it all happen in windows. Instead of adding the argument ">>WriteLog.log" what would the proper way to log the console inside of Objective C? ...

Are there any console (not GUI!) alternatives to powershell.exe?

There are a number of GUI hosts for Powershell (Powershell ISE, PoshConsole, etc) but I'm not aware of any purely console hosts other than powershell.exe. Are there any that offer any advantages over powershell.exe? I'd like to be able to customise more of the host behaviour - specifically to add and customise key bindings other than TA...

Leaving Windows Console windows open after process termination

Is there an OS or user-account level modification for windows 7 that I can use to leave the console window of terminated processes open? Background: I like to use console programs for simple tests. These things tend to need debugging and analysis, and the easiest way to do that is to use printf or equivalent - that's available in prett...

How could I link my c++ console application to take control of an existing console?

How would I take control of the console of a batch file, and load it into my c++ application? ...

Command Param for making console invisible

I am firing up a cmd console from my .net app with some parameters, is there a parameter to specify that the cmd console is not visible? ---- Edit - Adding Code I know this isn't the standard way of starting a process in .Net, but it is being run from a Silverlight Client. Dynamic cmd = AutomationFactory.CreateObject("WScript.Shell"...

I can't figure out why a link seems to be returning false when clicked - will Console help?

I have a pop-up window in a web app that allows you to edit details of a job. You can also click a link to cancel/delete that job. But when I click that link right now after making some edits to it, nothing happens. It behaves as if javascript was targeting it with "return: false;" so it does nothing. The URL is correct. How can I check...

Rails console with special initial commands

I'm using Rails script/console to learn REST routes. It is very handful! In order to do that I need to paste these two lines every time I run console: include ActionController::UrlWriter default_url_options[:host] = 'whatever' If there is any way to make a script which will add this automatically every time I run console? ...

Start a process in the same console

Can I start a process (using C# Process.Start()) in the same console as the calling program? This way no new window will be created and standard input/output/error will be the same as the calling console application. I tried setting process.StartInfo.CreateNoWindow = true; but the process still starts in a new window (and immediately clo...

what possible reasons could block a virtual terminal on Linux?

Or is it possible at all that some process or something else could block a virtual terminal? Or what could be a reason that an application hangs when trying to access the VT1? It seems, while that is happening, it is hanging in the function ioctl. Esp., this is the code which fails: int vtno = 1; const char* vtname = "/dev/tty1"; int ...

Keeping input/output separated in Java console application

Hello, I am writing a console application in Java. It is similar to a chat client: Input and output are asynchronously made. The problem is that if some output is made while the user is in the middle of typing, the lines will get mixed up on the screen. I am looking for a solution which allows me to have a input area separate from the ...

how to open new console window using Ansi C?

hello every body i am beginner in Anci c programming here is the description for my program my program first asks user to press any key then a new console is opened and the user inputs any number he want then the console is closed and the number he typed is printed in the parent console ,i hope this clear and thanks for reply so i wa...

Interesting Console Program for C++ beginners

I’m teaching an entry-level C++ programming class. We only use iostream in the class (No GUI). It seems like students are not so excited to printout strings and numbers to their console. (Most students even never used the console before.) It is hard to motivate or convey the excitement of programming by showing strings in their console. ...

SDL/C++/OpenGL graphics display says "Not Responding" on cin from console.

So the story goes, I have an sdl/c++/opengl/win32 program which has a window to display my graphics and a console to get user input. When I tell the console to get input the display will go into a "Not Responding" mode. The program is single threaded and I was hoping that there was a better way around the problem then creating a multi-...

In Scala or Java, how to print a line to console replacing its previous content instead of appending?

A Scala application does some data processing. It would be nice to show processing progress in percents overwriting previous value on change rather than appending a new value to what's already displayed. How to acheive this effect? I use Scala 2.8 on Linux. ...

Eclipse and Android development - a few noob questions

I've tested deployment to Android Market already as a test, seems like everything is hooked up fine - but now getting a little deeper into java and need to figure out how to use the Eclipse IDE. I'm having exceptions, but where can see the exception message?.. it's not showing up in my consoles , not even the java stack trace console w...

How to get keyboard state in Linux?

I want to check if the user pressed down the SHIFT key, when program starts. (That means, press down the SHIFT key before the program is started) It's a simple console program, nothing related to X. This maybe similar to Win32 GetKeyboardState() function. I want to know whether I can do this and how, but not any pros and cons with acc...

Can't open rails console: production database not configured, establish_connection raises ActiveRecord::AdapterNotSpecified

My app works pretty much perfectly in production – the website part of it, at least. The problem only pops up when I SSH into my VPS and do "rails c RAILS_ENV=production". The console works fine in development mode. I've had this problem before (or at least one that looks like it) and fixed it by adding "reconnect: true" to database.yml...

Getting firebug console to display different line numbers

I have wrapped calls to firebugs console.log in a logging function (that checks for existance of console along with other flags) for example: Log(string) { if (console && DEBUG) console.log(string); } my issue is that the firebug console shows the line number of the console.log function call rather then the Log function call. Is th...

Does Console.WriteLine block?

Does Console.WriteLine block until the output has been written or does it return immediately? If it does block is there a method of writing asynchronous output to the Console? ...

Mask Password Input in a Console App

I am writing a console application using BDE 2006 and I want it to be able to prompt for a password string and mask it with "*" as the user is typing. I have looked around but I could not find examples of how to do this. Everything I saw was how to do this in TEdit. Any pointers on how to accomplish this? Thanks in advance, Nic ...