Width()

From TinyMUX
Jump to navigation Jump to search

Description

FUNCTION: width(playerport)

Returns the width of the client window as reported by Telnet's Negotiate About Window Size (NAWS) option. For clients which do not negotiate the NAWS option, a value of 78 is returned.

If playerport is numeric, it's taken as a port number (as shown in SESSION). Otherwise, it's treated as a player name. If the named player is connected more than once, the width of the session having the smallest idle time is returned.

You and any object with the See_All @power may obtain the width of your sessions.

Example

> think width(me)
You say "122"

Server differences

PennMUSH permits any player to whom you are visible on the WHO list to obtain your session width using your name as an argument (but not by port number). In addition, the SCREENWIDTH size command can be used to manually set your width if your client doesn't.

Related Topics

height()