Skip to content

Commit

Permalink
Add -A/--ansi
Browse files Browse the repository at this point in the history
Don't strip ANSI codes.
  • Loading branch information
xxc3nsoredxx authored and Cogitri committed Nov 10, 2023
1 parent cfe7dcd commit 9614658
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wgetpaste
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -789,6 +791,9 @@ while [[ -n $1 ]]; do
-- )
shift && getfilenames "$@" && break
;;
-A | --ansi )
NOANSI=
;;
-c | --command )
requiredarg "$@"
SOURCE="command"
Expand Down

0 comments on commit 9614658

Please sign in to comment.