views:

294

answers:

2

I use in .Net version of my program three native WinApi functions through P/Invoke: ReadConsoleOutput, WriteConsoleOutput, ReadConsoleInput. How to implement this functionality in Mono counterpart under Linux?

I know about standart System.Console class. But this class for some strange reason does not support functionality of previously mentioned winapi-functions in any way.

+1  A: 

If you rewrite your I/O so that it keeps track of what ought to be on the screen itself (which shouldn't take up too much memory these days), and only update using the Console class, you should find that Mono's implementation can keep up. Mono also comes with access to ncurses functionality via the Mono.Terminal namespace, but sticking to Console will be more portable. You can still use it for positioning and color, via SetCursorPosition method, BackgroundColor property, etc.

Barry Kelly
Actually, I haven't seen any console thing which worked differently on Mono.
Dykam
A: 

What functionality are you missing exactly?

miguel.de.icaza
Copy region from screen and paste it to screen, controlling mouse
macropas