• getEscapes ?-w win? ?(-bgColor|-color|-hypertext|-strike|-tip|-underline)?
Return a list of colored, underlined or hypertext sections in the window
specified with the -w option (or the current window if -w
is not specified). The returned value is a list of lists, each sublist
consisting of a start position, an end position and a value which depends
on the kind of escapes specified in the last argument:
- with the -bgColor and -color options, the value is a color token;
- with the -hypertext option, the value
is the hypertext string;
- with the -tip option, the value is the
tooltip string;
- with the -strike or the -underline options, the value represents the kind of line
and the pattern. This value is interpreted as with the [insertEscapes] command.
Only one of the options can be specifed at a time. If the last argument is
not specified, it is assumed to be -color by default.