Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tool_doswin: Restore original console settings on CTRL signal #6226

Closed
wants to merge 1 commit into from

Commits on Jan 11, 2021

  1. tool_doswin: Restore original console settings on CTRL signal

    - Move Windows terminal init code from tool_main to tool_doswin.
    
    - Restore the original console settings on CTRL+C and CTRL+BREAK.
    
    Background: On Windows the curl tool changes the console settings to
    enable virtual terminal processing (eg color output) if supported
    (ie Win 10). The original settings are restored on exit but prior to
    this change were not restored in the case of the CTRL signals.
    
    VT default behavior varies; refer to the discussion in curl#6226.
    
    Assisted-by: Rich Turner
    
    Closes #xxxx
    jay committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    626e49b View commit details
    Browse the repository at this point in the history