# terms can be: $command , $varname or $bind
if {$command!=""} {set term $command
} elseif {$varname!=""} {set term $varname
} elseif {$bind!=""} {set term $bind}
# create the layout
# ul items are: syntax,procname,description,value,options,returns,module
set layout "$term"
append layout "
"
if {$syntax != ""} {append layout " - Syntax: $syntax
"}
if {$procname != ""} {append layout " - Usage: $procname
"}
if {$description != ""} {append layout " - Description:
$description
"}
if {$value != ""} {append layout " - Value:
$value
"}
if {$options != ""} {append layout " - Options:
$options
"}
if {$returns != ""} {append layout " - Returns:
$returns
"}
if {$module != ""} {append layout " - Module: $module
"}
append layout "
"