Skip to content

Commit

Permalink
Updated print_image comments and invocation for fourth argument, prin…
Browse files Browse the repository at this point in the history
…t_filename
  • Loading branch information
coljac committed Aug 7, 2016
1 parent 8cdb84f commit 1a64668
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/imgcat
Expand Up @@ -20,10 +20,12 @@ function print_st() {
fi
}

# print_image filename inline base64contents
# print_image filename inline base64contents print_filename
# filename: Filename to convey to client
# inline: 0 or 1
# base64contents: Base64-encoded contents
# print_filename: If non-empty, print the filename
# before outputting the image
function print_image() {
print_osc
printf '1337;File='
Expand Down Expand Up @@ -100,7 +102,7 @@ done

# Read and print stdin
if [ $has_stdin = t ]; then
print_image "" 1 "$(cat | base64)"
print_image "" 1 "$(cat | base64)" ""
fi

exit 0

0 comments on commit 1a64668

Please sign in to comment.