1term::ansi::code(n) Terminal control term::ansi::code(n)
2
3
4
5______________________________________________________________________________
6
8 term::ansi::code - Helper for control sequences
9
11 package require Tcl 8.4
12
13 package require term::ansi::code ?0.1?
14
15 ::term::ansi::code::esc str
16
17 ::term::ansi::code::escb str
18
19 ::term::ansi::code::define name escape code
20
21 ::term::ansi::code::const name code
22
23_________________________________________________________________
24
26 This package provides commands enabling the definition of control
27 sequences in an easy manner.
28
29 ::term::ansi::code::esc str
30 This command returns the argument string, prefixed with the ANSI
31 escape character, "\033."
32
33 ::term::ansi::code::escb str
34 This command returns the argument string, prefixed with a common
35 ANSI escape sequence, "\033[".
36
37 ::term::ansi::code::define name escape code
38 This command defines a procedure name which returns the control
39 sequence code, beginning with the specified escape sequence,
40 either esc, or escb.
41
42 ::term::ansi::code::const name code
43 This command defines a procedure name which returns the control
44 sequence code.
45
47 This document, and the package it describes, will undoubtedly contain
48 bugs and other problems. Please report such in the category term of
49 the Tcllib SF Trackers [http://source‐
50 forge.net/tracker/?group_id=12883]. Please also report any ideas for
51 enhancements you may have for either package and/or documentation.
52
54 control, declare, define, terminal
55
57 Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
58
59
60
61
62term 0.1 term::ansi::code(n)