[Gambas-devel] Fwd: Re: gb.ncurses feedback?

tobi tobias at ...692...
Sat Apr 14 01:15:22 CEST 2012


> - I don't understand the Window array accessors. I suggest that you keep 
> the array accessors for accessing character attributes individually, and 
> that you create methods for retrieving some text blocks.
> 
> - I suggest that you rename the following methods:
> 
> Window.HLine() -> Window.DrawHLine()
> Window.VLine() -> Window.DrawVLine()
> 
> And then, the cool thing would be having a Window.DrawRect() that can 
> draw overlapping rects and manage the character appearance when lines 
> cross. :-)
> 
> - I think that NCurses should be initialized by default in the main 
> hook, just before the Main() function is called.
> 
> - NCurses.On() and NCurses.Off() should be removed. Or renamed if we 
> need to exit the ncurses mode temporarily.
> 
> Regards,
> 
> -- 
> Benoît Minisini
> 
> ------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
> _______________________________________________
> Gambas-devel mailing list
> Gambas-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-devel
> 

- I did the array accessors to do something like:
    hW[0, 5] = "This is text"
  which would print the string on line 0, column 5. That's just what the Print() method does,
  just shorter, no problem to replace it by the hW.Attributes array accessors.

- I don't quite understand the DrawRect() feature. You mean overlapping rectangles and what?

- OK, main hook.

- I personally never exited ncurses mode temporarily, but mutt, my email client, does when I switch to
  vim to write a mail. I don't know if it could be very useful...





More information about the Devel mailing list