display
index
/Users/hollis/Desktop/nakedmud/lib/pymodules/display.py

display.py
 
Various utilities for displaying information such as tables and metered values.

 
Modules
       
math
mud

 
Functions
       
meter(val, char='{p#', empty=' ', lcap='[', rcap=']', align='left', width=20)
return a numeric value ranging between [0, 1], displayed as a horizontal
meter.
pagedlist(category_map, order=None, header=None, height=21)
Display lists of information as flips within a book. category_map is a
mapping between section headers and lists of entries to display for that
category. If you are only displaying one category, have a map from
the section header, Topics, to your list of entries. If the categories
should be displayed in a specific (or partially specific) order, that
can be specified. Header is text that can appear at front of the book
display.
table_row(info, align='left', caps='|', space=' ', center_filler=' ', width=79)
display a table row like this:
| info       |
table_splitrow(left, right, align='left', caps='|', space=' ', center_filler=' ', width=79)
display two columns like this:
| left    | right    |
table_splitrows(left, right, align='left', caps='|', space=' ', center_filler=' ', width=79)
return a list of split rows

 
Data
        table_border = '+-----------------------------------------------------------------------------+'
table_filler = '| |'