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

NAME

8       term::ansi::code::attr - ANSI attribute sequences
9

SYNOPSIS

11       package require Tcl  8.4
12
13       package require term::ansi::code  ?0.1?
14
15       package require term::ansi::code::attr  ?0.1?
16
17       ::term::ansi::code::attr::names
18
19       ::term::ansi::code::attr::import ?ns? ?arg...?
20
21       ::term::ansi::code::attr::fgblack
22
23       ::term::ansi::code::attr::fgred
24
25       ::term::ansi::code::attr::fggreen
26
27       ::term::ansi::code::attr::fgyellow
28
29       ::term::ansi::code::attr::fgblue
30
31       ::term::ansi::code::attr::fgmagenta
32
33       ::term::ansi::code::attr::fgcyan
34
35       ::term::ansi::code::attr::fgwhite
36
37       ::term::ansi::code::attr::fgdefault
38
39       ::term::ansi::code::attr::bgblack
40
41       ::term::ansi::code::attr::bgred
42
43       ::term::ansi::code::attr::bggreen
44
45       ::term::ansi::code::attr::bgyellow
46
47       ::term::ansi::code::attr::bgblue
48
49       ::term::ansi::code::attr::bgmagenta
50
51       ::term::ansi::code::attr::bgcyan
52
53       ::term::ansi::code::attr::bgwhite
54
55       ::term::ansi::code::attr::bgdefault
56
57       ::term::ansi::code::attr::bold
58
59       ::term::ansi::code::attr::dim
60
61       ::term::ansi::code::attr::italic
62
63       ::term::ansi::code::attr::underline
64
65       ::term::ansi::code::attr::blink
66
67       ::term::ansi::code::attr::revers
68
69       ::term::ansi::code::attr::hidden
70
71       ::term::ansi::code::attr::strike
72
73       ::term::ansi::code::attr::nobold
74
75       ::term::ansi::code::attr::noitalic
76
77       ::term::ansi::code::attr::nounderline
78
79       ::term::ansi::code::attr::noblink
80
81       ::term::ansi::code::attr::norevers
82
83       ::term::ansi::code::attr::nohidden
84
85       ::term::ansi::code::attr::nostrike
86
87       ::term::ansi::code::attr::reset
88
89_________________________________________________________________
90

DESCRIPTION

92       This  package  provides  symbolic  names for the ANSI attribute control
93       codes. For each control code a single command is provided which returns
94       this  code as its result. None of the commands of this package write to
95       a  channel;  that  is  handled   by   higher   level   packages,   like
96       term::ansi::send.
97

API

99   INTROSPECTION
100       ::term::ansi::code::attr::names
101              This  command  is  for introspection. It returns as its result a
102              list containing the names of all attribute commands.
103
104       ::term::ansi::code::attr::import ?ns? ?arg...?
105              This command imports some or all  attribute  commands  into  the
106              namespace  ns.  This is by default the namespace attr. Note that
107              this is relative namespace name, placing  the  imported  command
108              into  a  child of the current namespace. By default all commands
109              are imported, this can howver be restricted by listing the names
110              of the wanted commands after the namespace argument.
111
112   ATTRIBUTES
113       ::term::ansi::code::attr::fgblack
114              Set text color to Black.
115
116       ::term::ansi::code::attr::fgred
117              Set text color to Red.
118
119       ::term::ansi::code::attr::fggreen
120              Set text color to Green.
121
122       ::term::ansi::code::attr::fgyellow
123              Set text color to Yellow.
124
125       ::term::ansi::code::attr::fgblue
126              Set text color to Blue.
127
128       ::term::ansi::code::attr::fgmagenta
129              Set text color to Magenta.
130
131       ::term::ansi::code::attr::fgcyan
132              Set text color to Cyan.
133
134       ::term::ansi::code::attr::fgwhite
135              Set text color to White.
136
137       ::term::ansi::code::attr::fgdefault
138              Set default text color (Black).
139
140       ::term::ansi::code::attr::bgblack
141              Set background to Black.
142
143       ::term::ansi::code::attr::bgred
144              Set background to Red.
145
146       ::term::ansi::code::attr::bggreen
147              Set background to Green.
148
149       ::term::ansi::code::attr::bgyellow
150              Set background to Yellow.
151
152       ::term::ansi::code::attr::bgblue
153              Set background to Blue.
154
155       ::term::ansi::code::attr::bgmagenta
156              Set background to Magenta.
157
158       ::term::ansi::code::attr::bgcyan
159              Set background to Cyan.
160
161       ::term::ansi::code::attr::bgwhite
162              Set background to White.
163
164       ::term::ansi::code::attr::bgdefault
165              Set default background (Transparent).
166
167       ::term::ansi::code::attr::bold
168              Bold on.
169
170       ::term::ansi::code::attr::dim
171              Dim on.
172
173       ::term::ansi::code::attr::italic
174              Italics on.
175
176       ::term::ansi::code::attr::underline
177              Underscore on.
178
179       ::term::ansi::code::attr::blink
180              Blink on.
181
182       ::term::ansi::code::attr::revers
183              Reverse on.
184
185       ::term::ansi::code::attr::hidden
186              Hidden on.
187
188       ::term::ansi::code::attr::strike
189              Strike-through on.
190
191       ::term::ansi::code::attr::nobold
192              Bold off.
193
194       ::term::ansi::code::attr::noitalic
195              Italics off.
196
197       ::term::ansi::code::attr::nounderline
198              Underscore off.
199
200       ::term::ansi::code::attr::noblink
201              Blink off.
202
203       ::term::ansi::code::attr::norevers
204              Reverse off.
205
206       ::term::ansi::code::attr::nohidden
207              Hidden off.
208
209       ::term::ansi::code::attr::nostrike
210              Strike-through off.
211
212       ::term::ansi::code::attr::reset
213              Reset all attributes to their default values.
214

BUGS, IDEAS, FEEDBACK

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

KEYWORDS

223       ansi, attribute control, color control, control, terminal
224
226       Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
227
228
229
230
231term                                  0.1            term::ansi::code::attr(n)
Impressum