mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 14:37:17 +02:00
Added NAWS negotiation to telnet protocol, for negotiating the client width/height. Use session.get_client_size() to get a tuple of (width, height) for the current output window. Not currently supported by the webclient. Also added options settings.CLIENT_DEFAULT_WIDTH and -HEIGHT for having a fallback. Note that none of Evennia's default systems currently use this width information.
This commit is contained in:
parent
699a6ded43
commit
9af3b44e1c
3 changed files with 25 additions and 2 deletions
|
|
@ -379,6 +379,11 @@ PERMISSION_HIERARCHY = ["Guests", # note-only used if GUEST_ENABLED=True
|
|||
"Immortals"]
|
||||
# The default permission given to all new players
|
||||
PERMISSION_PLAYER_DEFAULT = "Players"
|
||||
# Default sizes for client window (in number of characters), if client
|
||||
# is not supplying this on its own
|
||||
CLIENT_DEFAULT_WIDTH = 78
|
||||
CLIENT_DEFAULT_HEIGHT = 45 # telnet standard is 24 but does anyone use such
|
||||
# low-res displays anymore?
|
||||
|
||||
######################################################################
|
||||
# Guest accounts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue