console

C# Console Problem

Consider this class: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Game.Items { class Item { private string name; public string Name { get { return this.name; } } private string description; public string Description ...

Python Text User Interface

I want to build simple console applications, but want something like QT and not like ncurses. Is there such a thing or is it only my dream UI? ...

How do i prevent a StackOverflow error in the following code?

I have the follwing code that provides an auto refresh feature to a WCF Console Hosted Application. When the Console.ReadKey accepts an invalid character, it restarts the ReadKey method. If the user mashes the keyboard long enough on this code it will go into a StackOverflowException. Does anyone have a way to re-write this code so th...

Coda: Automatically Clear JavaScript Console on page reload?

Is there any setting in Coda, or hackable solution, to get the JavaScript Console log to automatically clear itself after page reload? I often stumble when I see old errors in the log, that doesn't still exist. ...

is it possible to start the Rails console from within your code?

I know of the ruby gem "ruby-debug" that allows you to place a debugger call inside your code. Using it, it's possible to have breakpoints in your code. I used script/console a bit for some tests, and I would like to know if I can call it from my code. Thanks ! EDIT: here is some sample ruby code require "ruby-debug" [1,2,3,4,5]....

how to "spy " on win32pipe/console ?

hello, i have an application which call another console application and pass to it some parameters (console app is a video/audio coverter app) ... is there a way to programmatically "spy" or catch the passed paramters other than hooking/monitoring shellexecute/CreateThread etc ? ...

Property is null, even after being set in code.

Hello, I've been trying to solve this for ages (3 days) now and I just cannot figure it out. I will try to explain the problem comprehensively because it is a bit more complex. My school assignement is to create a simple text game using OOP in C# Visual Studio 2008 (should be built on a library the teacher provided for us). It should o...

How to take the input from user in console or file with ease in c#?

I am a C++ user and now trying to use c#. In c++ taking input from the user was fun (just >>) and supported all the types. So was for the files. But in c# it is too complex, as I can take only strings. Then I have to manipulate it for later use. And if I want to take multiple inputs in same line separated by whitespaces, it become more...

Architectural considerations in designing console applications?

I have recently programmed a console application and I've experienced a lot of pain in designing it in many aspects, particularly in C#, given its pure OO paradigm. Questions I have faced include anything from how to pass the options to how to return problems to the entry point class, among many, many others. My question is: would any o...

How can I make a console application that lets me enter LINQ expressions and my program will execute them?

How can I write a console application that prompts me and lets me enter LINQ expressions and it will spit out the results of that LINQ query? What would be the easiest way to parse/evaluate a incoming string as a LINQ expression? ...

C# Making a Frontend to a Console Program?

I wrote a console program in c# that takes up to three files as input, and does some data calculations on them. I'd like to make a simple frontend that allows the user to easily *import files - basically choose up to three files to be routed to the backend code *change settings - i have about 10 settings that i'm currently storing in ...

Correct way to implement C# console application?

What is the correct way to implement and architect a command line tool as a C# console application? Concerns to address include proper parsing of command line variables, and the proper way to output text. While Console.WriteLine() is the most obvious choice for output, what are the circumstances in which one should instead opt to write...

C# Making the second and third OpenFileDialog appear above the console?

I'm writing a console program that can accept 1 to 3 files. I'm using OpenFileDialog three times to accept the files, but the second time and third the file dialog is behind the console window, making it hard to notice. Any way to get it to appear above? An image of the problem: http://img205.imageshack.us/img205/5312/problemr.png The ...

How can I get the application's path in C# in a console app?

I have a console app, and I would like to find the application's path. In winforms I can use Application.StartupPath to find the current path, but this doesn't seem to be available in a console app? ...

How to make Java console input dissapear after pressing enter

I'm using the Scanner class to take some input from the user through the console. Whenever the user inputs something in the screen and presses enter the input stays on screen for example: This is the prompt // User writes command and presses enter command output of command goes here //Use writes command3 command output of command ...

XCode 3.1.3 breaks console output

Hello, Today has been a headache - first my upgrade to xcode 3.1.3 trashed all my certs/provisions. After two attempts, I got them fixed. Now, I'm dealing with the issue in the subject, no console output. Absolutlely nothing is getting printed to the console - No startup info, not when I "print" a variable from xcode when stopped on a ...

Gnome-Terminal, how to start in a different directory?

Hi, Whenever I start my console gnome-terminal in Ubuntu, it starts in the home directory. How can I make it start in a different directory say ~/myfolder? I tried to write cd ~/myfolder in ~/.profile but nothing happens. ...

Running console application from C# but application can't create file

i have windows forms application wich runs another console application here is the part of code prog = new Process(); prog.StartInfo.FileName = exefile; the console application should create file but when running that application from C# it doesn't creates any file when im running console application with double click it works fine he...

C# simultanous console input and output?

Hey guys, I am writing a server app and I want it to be console based. I need the user to be able to input different commands, but at the same time there is a possibility that something will be output to the console while the user is writing. This messes the buffer up. Is there any clean way of doing this? Thanks. ...

C#: Printing all properties of an object

Is there a method built in to .NET that can write all the properties and such of an object to the console? Could make one using reflection of course, but I'm curious to if this already exists... especially since you can do it in Visual Studio in the Immediate Window. There you can an object name (while in debug mode), press enter, and it...