console

Writing a console wrapper in C#?

I am trying to write my own Command Line wrapper like 'Console2' in C#. Unfortunately I haven't figured out a good way to do it. Can somebody give me an example of grabbing console input and output and directing it into an Application? NB I am not trying to make a console application, I am trying to make a wrapper for console - A windo...

.NET Console windows

Is there any class or how to draw windows in console application using pseudo symbols like in far manager or turbo pascal? I have found some symbols using conversion from Int to Char. ...

How do I design View logic into c# projects

I have three c# projects in my solution. One is a console app that simply calls into a class library project. The class library project does all the processing for the application. Then there is a WinForm project that displays a form and then when a button is pressed, calls the same logic in the class library project. As a result, th...

Running ant in eclipse (sql2java) - no output to the console

Hi, I am configuring sql2java the first time myself. I extracted the zip-archive and imported all files into an eclipse java project. I don't know if this is correct, because when I run the ant build file through the eclipse ant function ("Run as ant build...") there is no output on the console. I don't know where the problem is locat...

create a console in Minix

I need to write an app to create a console in Minix This is just for a project ( in fact for an interview test. ) Where should i start this is a matter where i don't have time to learn much about Minix( usually i used to )...and have to write a program right away... any good tutorials about I/O, display connections writing an app fo...

Could this be C# Model View Controler console app in and if not why ?

Just trying to grasp the MVC by doing ... and still not sure got it right .. using System; using System.Text; namespace MVPConsoleApp { class Program { static void Main(string[] args) { View objView = new View(); Controller objController = new Con...

Determine input encoding

I'm getting console input from the user and want to encode it to UTF-8. My understanding is C++ does not have a standard encoding for input streams, and that it instead depends on the compiler, the runtime environment, localization, and what not. How can I determine the input encoding? ...

ignore firebug console when not installed

I use Firebug's console.log() for debugging my website. If I try viewing my website in browsers without Firebug then I get a console is not defined error. Is there a way to gracefully avoid this error? I found this potential solution, but it seems a bit cumbersome. And ideas? ...

C++ console keyboard events

Is there any way to get key events in a Windows console? I need a way to get keydown and keyup events quickly without a GUI. I've tried using getch(), but it doesn't get keyups and waits until a key has been pressed to return. ...

Coding Linux console application in Visual C++ 2008/2010 Express

I was told about the fascination of C++ and I have recently downloaded Visual C++ IDE to start learning C++. However I had this question in mind: How can I write C++ console application in Visual C++ and build it for Linux and Windows? Is there any plugin, additional compilers or hacks to go around with? ...

Display an html formatted string

I'd like to display a string that containts html code (mainly for formating purposes like italic, bold, indentation, colors etc.) from a C# console application. I don't think I'll need to go with a WebBrowser class for that, since there won't be any kind of navigation possible. 1) What would be the most straightforward way to do it? 2...

interactive communication console programs(like client-server) windows

I have two console programs (ex. first - client, second - server). Do Windows have a command or resource to connect it? Client ask question, Server answer. Anyone encountered this problem? (just win) ...

What do the numbers in stack trace mean?

How can I use the numbers in the stacktrace? What do these mean? In eclipse I get often exceptions, for example a NullPointerException: java.lang.NullPointerException at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68) at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47) at com.sun.midp.lcdui.DefaultEventHandler$Q...

interactive tasks (question to participants of acm,ioi etc) - realization.

You well know tasks in olympiads, where solution's input is output of same module. Server.exe's output is Client.exe's input, and in another direction. How do you think it's testing under Windows? I try to made personal testing system. More formally: You have: 1) a.exe and b.exe 2) stdout of a.exe is stdin of b.exe and in another direct...

Filtering app server console output in Eclipse to not include long stack traces and just show me the error message?

I am using JBoss 4.2. Long stack traces are useless to me most of the time. Is there a way to only show the error message? Can stack traces be disabled or trimmed for normal java programs also? ...

List databases/objects using Rails console

In Rails console: I was wondering if you could list/examine what databases/objects are available to you. Yes I know you can see using other tools, just curious if you can inspect them inside the Rails console. thanks. ...

Is it possible to make user input invisible as a 'sudo' password input?

I'm using raw_input() to receive password from user in interactive mode, but I want to make input symbols invisible for security reasons, as it is when you're typing your password using sudo or connecting to a database. How I should do it? ...

Ruby and console output

It is possible, generally, by means of Ruby library to output a symbol at specific location on a common Windows console screen, which seems to be 80x25 ? The problem came up with the need to draw a specific 'tree' structure like this, for example: │ ├──x──y──z │ │ │ ├──a──b──c │ │ │ └──e──f──g │ └──u──v──o ...

Filtered tasklist piped into find doesn't show console output?

Windows XP Pro This shows output in the console: dir | find " free" This doesn't: tasklist | find "Image Name" This does: tasklist | find /C "Image Name" And this does write the expected line into the file: tasklist | find "Image Name" > foo.txt What causes that? ...

How to check which program runs inside gnome-terminal

I want to write a program which prints the current focused window name and if it is a gnome-terminal, then prints out the running program inside the current gnome-terminal tab (for example vim, if a vim session is running). To get the currently focused window name, I used: xprop -root | grep "_NET_ACTIVE_WINDOW(WINDOW)" ...