FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Welcome

 
Post new topic   Reply to topic     Forum Index -> dcurses
View previous topic :: View next topic  
Author Message
larsivi
Site Admin


Joined: 27 Mar 2004
Posts: 453
Location: Trondheim, Norway

PostPosted: Tue Oct 19, 2004 6:20 am    Post subject: Welcome Reply with quote

What is dcurses? (Long and unstructured explanation):
dcurses is supposed to be an implementation of curses in D. With implementation of curses, I mean that the functionality present in curses and it's various clones, will be implemented in D. It DON'T mean that it will be a clone API-wise. The curses API is very pure C (read procedural). If that is what you want, you can as well link to a C implementation and use if from D. I want to modernize it into a library that is somewhat more OO since there are several natural objects in the system. Very many of the functions in curses take a WINDOW pointer as an argument. I plan to make these functions methods of that class (which is a struct in curses), as it will reduce redundancy and code size. I expect to find side effects during that process, but problems are there to be solved.

Goals for dcurses:
It should become a stable library for consoleoriented development in D.
It will be implemented fully in D.
It won't necessarily follow the conventions and API of the original curses.
It should be cross-platform.

The current situation:
dcurses is a partial port of PDCurses to D. It is currently Windows only (although it should be fairly easy to do the linux part) and only has a subset of the API implemented. Some of the functions has modernized names (the C ones are rather cryptic), and the rest will follow. The sample app fireworks compiles and executes, though not correctly. The reason is more than likely UTF-issues as they weren't really handled in PDCurses.

Coming up next:
My next task is to correct the output.
Then implement more of the samples from PDCurses (as that will prompt the need for more implementation in the core library).
During this process I will continue to reorganize until I find it better looking. For inspiration I might look at JCurses, but it seems to have somewhat differing goals.

Are you interested in dcurses?:
Post suggestions in the forum.
Post patches (or send them to me).
Use it (at least when it really becomes usable).
Don't fret over incompatibilities with curses, ncurses of PDCurses.
Don't fret over incompatibilities with previous versions of dcurses until at least one stable release has been made.
Don't expect it to be further developed at the speed of light, a turtle is probably a better target for comparison.

Lars Ivar Igesund
larsivar 'at' nospam 'dot' igesund 'dot' net
Back to top
View user's profile Send private message
larsivi
Site Admin


Joined: 27 Mar 2004
Posts: 453
Location: Trondheim, Norway

PostPosted: Fri Nov 12, 2004 10:39 am    Post subject: Support for current code discontinued Reply with quote

After trying to make some deeper changes to dcurses, I found that doing a direct port was to limiting. I've therefore discontinued it and started a complete rewrite. Hopefully something will show up in the not so distant future.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> dcurses All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group