Re: ncurses Library for .NET

Peter Ritchie <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.advanced
Message-ID <LISTSERV%[email protected]>
What particular part of ncurses are you looking for?  Do you need mouse
input, do you want simply colour and positioning, are you looking for
windowing, etc.?


I you're only looking for positioning and colour, do
Console.SetCursorPosition(), Console.BackgroundColor,
Console.ForegroundColor not do what you want (besides the background
bitmap, which I don't think is possible in a .NET console)?

Yes, you don't get handy functions like mvaddch, but they'd be simple to
implement:

public static void mvaddch(int x, int y, char c)
{
  Console.SetCursorPosition(x,y);
  Console.Write(c);
}

Given the complete lack of object-orientation in the curses API (like
member overloading), I think writing an ncurses API in .NET would be
anachronistic and writing similar functionality to make full use of OO
would be a better endeavour (which may be why it hasn't been done).

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.