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

KEYWORDS

64       ansi, control, frame, menu, terminal
65
67       Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
68
69
70
71
72term                                  0.1          term::ansi::code::macros(n)
Impressum