|
|||||||
This is a discussion on "CURSES enabled Mudserver" in the Top Mud Sites Advanced MUD Concepts forum : Hi Aren't we always struggling to find the "next big thing"? My entire life, I've pushed myself, not always successfully, toward the cutting edge of whatever I'm involved in. Recently, I came across an old Xerox PARC article about conferencing software based on MUD servers. While I didn't think multi-casting video was such a good idea, musing over this article did give me a thought about screen control. curses is a terminal control library, as I'm sure many of you know, for UNIX that allows a program to move past the line-... |
|
You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our MUD community today! If you have any problems with the registration process or your account login, please contact us. If you are a registered member of the old TMS forums, please click here
|
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
|
New Member
Join Date: Feb 2003
Posts: 29
![]() |
Hi
Aren't we always struggling to find the "next big thing"? My entire life, I've pushed myself, not always successfully, toward the cutting edge of whatever I'm involved in. Recently, I came across an old Xerox PARC article about conferencing software based on MUD servers. While I didn't think multi-casting video was such a good idea, musing over this article did give me a thought about screen control. curses is a terminal control library, as I'm sure many of you know, for UNIX that allows a program to move past the line-printer abstraction we've been stuck in so long and draw characters arbitrarily on a screen. Now, it's a little complicated to extend this to a MUD, but very possible. Here's how we'd get a screen from a client: [code] int sock; /* file descriptor of client */ FILE *fd; SCREEN s; /* curses-defined type for screen control */ fd = fdopen( sock, "r+" ); s = newterm( "vt100", fd, fd ); [/quote] Then, we can do something creative like this: [code] set_term( connection->screen ); move( 10, 10); printw( "Hello World!" ); [/quote] This would print Hello World on the tenth line at the tenth column on the screen controlled by connection. The concept of pop-up windows, one-touch menus and the like pop into my mind. I've sucessfully tested the server (Thanks Visko) with Windows Telnet, and zMUD suppossedly supports vt102, so that shouldn't be a problem. Anyway, let me know your thoughts. Hopefully, some good will come of this. -Xanes -=- Lone Coder WinterMUTE |
|
|
|
|
|
#2 |
|
New Member
Join Date: Feb 2003
Posts: 29
![]() |
Correction to the previous post:
newterm returns a pointer, so I should have defined 's' that way in the example. I apologize if this was confusing, or if you didn't even notice and THIS post has wasted your time. -Xanes Lone Coder WinterMUTE |
|
|
|
|
|
#3 |
|
Posts: n/a
|
Why curses, isn't curses being replaced by ncurses?
|
|
|
|
#4 |
|
New Member
Join Date: Feb 2003
Posts: 29
![]() |
ncurses is a curses implementation. In fact, ncurses is what I'm using on the test server.
-Xanes -=- Lone Programmer WinterMute |
|
|
|