mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-03-02 15:31:16 +01:00
batman: Remove dependency on col
program
This follows proposed solution (C) in https://github.com/sharkdp/bat/issues/2568
This commit is contained in:
parent
3f259f1a07
commit
8460b39956
@ -48,7 +48,8 @@ fi
|
|||||||
|
|
||||||
if [[ "${BATMAN_IS_BEING_MANPAGER:-}" = "yes" ]]; then
|
if [[ "${BATMAN_IS_BEING_MANPAGER:-}" = "yes" ]]; then
|
||||||
print_manpage() {
|
print_manpage() {
|
||||||
col -bx | "$EXECUTABLE_BAT" --language=man "${BAT_ARGS[@]}"
|
sed -u -e 's/\x1B\[[0-9;]*m//g; s/.\x08//g' \
|
||||||
|
| "$EXECUTABLE_BAT" --language=man "${BAT_ARGS[@]}"
|
||||||
exit $?
|
exit $?
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user