1term::ansi::code::macros(n)    Terminal control    term::ansi::code::macros(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       term::ansi::code::macros - Macro sequences
9

SYNOPSIS

11       package require Tcl  8.4
12
13       package require textutil::repeat
14
15       package require textutil::tabify
16
17       package require term::ansi::code::macros  ?0.1?
18
19       ::term::ansi::code::macros::names
20
21       ::term::ansi::code::macros::import ?ns? ?arg...?
22
23       ::term::ansi::code::macros::menu menu
24
25       ::term::ansi::code::macros::frame string
26
27_________________________________________________________________
28

DESCRIPTION

30       This  package  provides higher level control sequences for more complex
31       shapes.
32

API

34   INTROSPECTION
35       ::term::ansi::code::macros::names
36              This command is for introspection. It returns as  its  result  a
37              list containing the names of all attribute commands.
38
39       ::term::ansi::code::macros::import ?ns? ?arg...?
40              This  command  imports  some  or all attribute commands into the
41              namespace ns. This is by default the namespace macros. Note that
42              this  is  relative  namespace name, placing the imported command
43              into a child of the current namespace. By default  all  commands
44              are imported, this can howver be restricted by listing the names
45              of the wanted commands after the namespace argument.
46
47   SEQUENCES
48       ::term::ansi::code::macros::menu menu
49              The description of a menu is converted into a formatted  rectan‐
50              gular  block  of  text,  with  the menu command characters high‐
51              lighted using bold red text.  The  result  is  returned  as  the
52              result of the command.
53
54              The  description,  menu, is a dictionary mapping from menu label
55              to command character.
56
57       ::term::ansi::code::macros::frame string
58              The paragraph of text contained in the  string  is  padded  with
59              spaces at the right margin, after normalizing internal tabs, and
60              then put into a  frame  made  of  box-graphics.  The  result  is
61              returned as the result of the command.
62

BUGS, IDEAS, FEEDBACK

64       This  document,  and the package it describes, will undoubtedly contain
65       bugs and other problems.  Please report such in the  category  term  of
66       the          Tcllib         SF         Trackers         [http://source
67       forge.net/tracker/?group_id=12883].  Please also report any  ideas  for
68       enhancements you may have for either package and/or documentation.
69

KEYWORDS

71       ansi, control, frame, menu, terminal
72
74       Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
75
76
77
78
79term                                  0.1          term::ansi::code::macros(n)
Impressum