Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zsh util helpfiles does not produce output
- X-seq: zsh-users 14065
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Zsh util helpfiles does not produce output
- Date: Sat, 25 Apr 2009 10:38:01 -0700
- In-reply-to: <gsv0d1$u18$1@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <gss5bj$m9j$1@xxxxxxxxxxxxx> <090424145758.ZM8591@xxxxxxxxxxxxxxxxxxxxxx> <gsv0d1$u18$1@xxxxxxxxxxxxx>
On Apr 25, 2:41pm, Thorsten Kampe wrote:
}
} col.txt on the Cygwin host (where it works) is plain text while on the
} Linux machine it looks like this:
}
} 1mNAME0m
} zshbuiltins - zsh built-in commands
}
} 1mSHELL BUILTIN COMMANDS0m
} 1m- 4m22msimple24m 4mcommand0m
} See the section `Precommand Modifiers'.
}
} The pure man output on both machines contains control sequences - but
} on Linux I see:
}
} [1mNAME[0m
OK, so what appears to be happening here is that on Linux, the "man"
program itself has become terminfo-aware and is generating terminal-
specific control sequences instead of simple overstriking. "col"
doesn't know that this is happening, so all it has done is to remove
the ESC characters, not the "escape sequences" that man has output.
So try this:
TERM=dumb man zshbuiltins > man.txt
That should get you back to something much more like the Cygwin output.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author