refactor: preserve terminal screen and scrollbuffer (#13)

Maintain the terminal output. If clearing the screen and scrollbuffer is desired, it should be wrapped in an upstream script.

Reviewed-on: https://codeberg.org/vlw/curl/pulls/13
This commit is contained in:
Victor Westerlund 2026-04-12 10:42:17 +02:00
parent 29090ad555
commit 64db42527b

View file

@ -66,9 +66,7 @@ fi
# Save the response headers and body
curl_cmd="$curl_cmd -o $RESP_BODY_RAW_FILE -D $RESP_HEADERS_FILE"
# Execute curl
eval "clear"
# Dispatch request
echo -e "\e[0;92mRequest >\e[0m ${method} ${url}"
eval $curl_cmd