diff options
author | Oskari Pirhonen <xxc3ncoredxx@gmail.com> | 2023-08-13 14:32:34 -0500 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2023-11-10 09:33:42 +0100 |
commit | 9614658e6a31bf1b318972008fd9fd1301e9d92f (patch) | |
tree | 14ced54f20b6e75f4f239c12a6da9c2e5021fed8 | |
parent | cfe7dcd8a0e40b8c18556aad0b657f431c90505a (diff) | |
download | wgetpaste-9614658e6a31bf1b318972008fd9fd1301e9d92f.tar.gz |
Add -A/--ansi
Don't strip ANSI codes.
-rwxr-xr-x | wgetpaste | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -556,6 +556,8 @@ Options: -X, --xpaste write resulting url to the X primary selection buffer (requires x11-misc/xclip) -C, --xclippaste write resulting url to the X clipboard selection buffer (requires x11-misc/xclip) -N, --no-ansi strip ANSI codes such as colors before pasting (requires app-text/ansifilter) + -A, --ansi don't strip ANSI codes + (useful for undoing NOANSI specified in a config file) -r, --raw show url for the raw paste (no syntax highlighting or html) -t, --tee use tee to show what is being pasted @@ -789,6 +791,9 @@ while [[ -n $1 ]]; do -- ) shift && getfilenames "$@" && break ;; + -A | --ansi ) + NOANSI= + ;; -c | --command ) requiredarg "$@" SOURCE="command" |