tags:

views:

73

answers:

3

I'm seriously perplex at how this guy make the console do this. This being it doesn't write top down, and how he can move up and down like that....

Can it be done with MonoDev and Terminal?

http://www.youtube.com/watch?v=-MA0nscgV2U

+1  A: 

The youtube video has a download link for the .exe and this is a link to reflector :-)

Andy Robinson
+2  A: 

The Console class has a SetCursorPosition method, as well as ForegroundColor and BackgroundColor properties.

The documentation for System.ConsoleColor has an example of using colors.

Cogwheel - Matthew Orlando
A: 

Either the Console class, or p/invoke to the Win32 Console API. (Same one the .Net Console class uses internally)

Don't know if Mono has implementation of the Console class (though fully expect them to do) or if it supports p/invoke style calls to native Linux/Unix APIs (though I do expect them to do :-)), but certainly Terminal does support direct access to the screen buffer. So it should be doable on non-Windows platforms as well.

Franci Penov