Benoit Sigoure wrote: > Bob Proulx wrote: > >For example when capturing output with 'script' all of those > >escape sequences get in the way. > > If you do this, it will DWYM unless you have a broken implementation > of `test -t' (which should be reported so we can mention it in the > "limitation of builtins" section of the Autoconf manual).
I don't understand your do-what-you-mean comment. As I read it it appears that you are implying that 'script' sessions are not attached to ttys and that 'test -t' should return false. But actually they are attached to ttys and 'test -t' will return true. 'script' is a typical way to save all I/O to and from a terminal to a file (usually named "typescript") and that includes any escape sequences that were generated in the output. Since the input and output are a tty devices 'test -t' will return true and also the TERM would be "xterm" or other color capable terminal and therefore color escape sequences would be generated and would be saved to the file. Bob
signature.asc
Description: Digital signature