mirror of
https://codeberg.org/vlw/curl.git
synced 2026-04-12 18:29:38 +02:00
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:
parent
29090ad555
commit
64db42527b
1 changed files with 1 additions and 3 deletions
4
curl.sh
4
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue