Jump to content

  • Log In with Google      Sign In   
  • Create Account


NCurses, windows within windows


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 samgj   Members   -  Reputation: 384

Like
0Likes
Like

Posted 07 May 2013 - 06:49 PM

In NCurses could a window be placed in another window and used to make a scrolling effect?


MLNM-ONE: open source video game engine

Unincorporated Media's Website: my company's website


Sponsor:

#2 Bacterius   Crossbones+   -  Reputation: 8158

Like
0Likes
Like

Posted 07 May 2013 - 11:16 PM

Not sure what you mean, but sure, you can have a window inside another window. You can even have two windows inside another window inside the main window if you want. The windows can be moved and resized as well. It's up to you to handle the drawing logic though. And when resizing parents windows you need to be careful you don't end up clipping child windows.

 

The only restriction iirc is that windows on the same level cannot overlap, which is not a problem here.


The slowsort algorithm is a perfect illustration of the multiply and surrender paradigm, which is perhaps the single most important paradigm in the development of reluctant algorithms. The basic multiply and surrender strategy consists in replacing the problem at hand by two or more subproblems, each slightly simpler than the original, and continue multiplying subproblems and subsubproblems recursively in this fashion as long as possible. At some point the subproblems will all become so simple that their solution can no longer be postponed, and we will have to surrender. Experience shows that, in most cases, by the time this point is reached the total work will be substantially higher than what could have been wasted by a more direct approach.

 

- Pessimal Algorithms and Simplexity Analysis





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS