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?
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?
The youtube video has a download link for the .exe and this is a link to reflector :-)
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.
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.