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.2?
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 se‐
27 quences 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, ei‐
40 ther 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 Trackers [http://core.tcl.tk/tcllib/reportlist]. Please
50 also report any ideas for enhancements you may have for either package
51 and/or documentation.
52
53 When proposing code changes, please provide unified diffs, i.e the out‐
54 put of diff -u.
55
56 Note further that attachments are strongly preferred over inlined
57 patches. Attachments can be made by going to the Edit form of the
58 ticket immediately after its creation, and then using the left-most
59 button in the secondary navigation bar.
60
62 control, declare, define, terminal
63
65 Terminal control
66
68 Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
69
70
71
72
73tcllib 0.2 term::ansi::code(n)