getEscapes ?-w win? ?(-color|-hypertext|-underline|-strike)?
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:
Only one of the options can be specifed at a time. If the last argument is not specified, it is -color by default.