console

Is there a console for Windows Mobile devices?

I would like to write small console based applications on Windows Mobile. What console applications might I use? ...

screen scraping a command window using .net managed code

I am writing a program in dot net that will execute scripts and command line programs using the framework 2.0's Process object. I want to be able to access the screen buffers of the process in my program. I've investigated this and it appears that I need to access console stdout and stderr buffers. Anyone know how this is accomplished us...

Cleanest way to stop a process on Win32 ?

While implementing an applicative server and its client-side libraries in C++, I am having trouble finding a clean and reliable way to stop client processes on server shutdown on Windows. Assuming the server and its clients run under the same user, the requirements are: the solution should work in the following cases: clients may...

sudo echo "something" >> /etc/privilegedFile doesn't work... is there an alternative?

This is a pretty simple question, at least it seems like it should be, about sudo permissions in linux. There are a lot of times when I just want to append something to /etc/hosts or a similar file but end up not being able to because both > and >> are not allowed, even with root. Is there someway to make this work without having to su...

Keyboard scancodes?

GNU/Linux text console, X11 not involved, indeed not even installed. Keyboard is US layout, keymap US default. Kernel version 2.20.x or later. An application written in C is getting keyboard input in translation mode, i.e. XLATE or UNICODE. When a key is pressed, the application receives the corresponding keystring. As an example, you p...

How best to draw in the console?

I'm trying to write a console (as in terminal, not gaming console) pong game in python and I'm having trouble figuring how best to (re)draw the game. I was thinking of having an 2d array as a sort of bitmap, editing the array to reflect the ball/paddles new positions and then casting each row to a string and printing it. However that me...

Used Ctrl-Alt-F6 in Linux, and can't get my screen back.

This is obviously a stupid question. I am coding in Eclipse both on Mac and Linux, but I mixed up and used the Mac shortcut to window tabbing (Ctrl-Cmd-F6), but I was using the Linux on uni and screen went black. I've done this before, but this time I can't get back to my desktop. Ctrl-Alt F1-F6 gives me different terminals, F7 gives me ...

Java - Console-like web applet.

Hey, I've been developing an application in the windows console with Java, and want to put it online in all of its console-graphics-glory. Is there a simple web applet API I can use to port my app over? I'm just using basic System.out and System.in functionality, but I'm happy to rebuild my I/O wrappers. I think something along these ...

How do I convert a .NET console application to a Winforms or WPF application

I frequently start with a simple console application to try out an idea, then create a new GUI based project and copy the code in. Is there a better way? Can I convert my existing console application easily? ...

Ruby. How can I copy and paste in irb on Windows?

How can I copy and paste in irb (Interactive Ruby Shell) on Windows? ...

Adding custom log locations to the OS X console application...

After searching online, the best solution I've found so far is to just make a symbolic link in either "/Library/logs/" or "~/Library/logs/" to get it to show up in the Console application. I'm wondering if it would be possible to add a new directory or log file to the "root" level directly under the "LOG FILES" section in the console. ...

How can I upgrade the *console* version of vim on OS X?

I'm sure this is a newbie question, but every time I've compiled/dl'ed a new version of vim for os x, running vim on the command-line opens up the gvim app. I just want to upgrade the console version (so I can, for example, have python compiled in to use omnicomplete). ...

How do I call controller/view methods from the console in Rails?

When I load script/console, some times I want play with the output of a controller or a view helper method. Are there ways to: simulate a request? call methods from a controller instance on said request? test helper methods, either via said controller instance or another way? ...

No output to console from a WPF application?

I'm using Console.WriteLine() from a very simple WPF test application, but when I execute the application from the command line, I'm seeing nothing being written to the console. Does anyone know what might be going on here? I can reproduce it by creating a WPF application in VS 2008, and simply adding Console.WriteLine("text") anywhere ...

Rails Console Doesn't Automatically Load Models For 2nd DB

I have a Rails project which has a Postgres database for the actual application but which needs to pull a heck of a lot of data out of an Oracle database. database.yml looks like development: adapter: postgresql database: blah blah ... oracle_db: adapter: oracle database: blah blah My models which descend from data on th...

What's the best way to pass a "row of data" from one C# console app to another C# console app?

I have a C# console app "App1" that reads a row of data from a table in a SQL Server 2005 DB. I want App1 to pass all the data in this row to App2, another C# console app. What is the best way to do this? My first (naive) attempt was to do this: object[] o = myrow.ItemArray; // make a string that separates each item by a space... for...

How do I trap ctrl-c in a C# console app

I would like to be able to trap ctrl-c in a C# console application so that I can carry out some cleanups before exiting. What is the best way of doing this? ...

C wrapper to remove users on command "ps"

I have one question maybe someone here can help me. If i do "ps aux --sort user" on linux console I have one list of users and their processes runing on the machine. My question is how do I remove the users name and print that list like this in a C program: for example: (…) --------------------------------------------------------------...

How do you add a timer to a C# console application

Just this - How do you add a timer to a C# console application? It would be great if you could supply some example coding. ...

Best Timer approach in C# console batch application

Which is the best timer approach for a C# console batch application that has to process as follows: Connect to datasources process batch until timeout occurs or processing complete. "Do something with datasources" stop console app gracefully. related question: http://stackoverflow.com/questions/186084/how-do-you-add-a-timer-to-a-c-co...