From 64db42527bd45bb339ebaba3eefb1320b4e34d07 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Sun, 12 Apr 2026 10:42:17 +0200 Subject: [PATCH] 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 --- curl.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/curl.sh b/curl.sh index fedaf82..040a295 100755 --- a/curl.sh +++ b/curl.sh @@ -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