Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > Advanced MUD Concepts
Click here to Register

Reply
 
Thread Tools
Old 02-22-2003, 03:58 PM   #1
xanes
New Member
 
Join Date: Feb 2003
Posts: 29
xanes is on a distinguished road
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
xanes is offline   Reply With Quote
Old 02-22-2003, 04:01 PM   #2
xanes
New Member
 
Join Date: Feb 2003
Posts: 29
xanes is on a distinguished road
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
xanes is offline   Reply With Quote
Old 02-22-2003, 04:49 PM   #3
Ingham
 
Posts: n/a
Why curses, isn't curses being replaced by ncurses?
  Reply With Quote
Old 02-22-2003, 07:15 PM   #4
xanes
New Member
 
Join Date: Feb 2003
Posts: 29
xanes is on a distinguished road
ncurses is a curses implementation. In fact, ncurses is what I'm using on the test server.

-Xanes -=- Lone Programmer WinterMute
xanes is offline   Reply With Quote
Reply


Thread Tools


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 07:38 AM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2022