rustup icon indicating copy to clipboard operation
rustup copied to clipboard

rustup-init leaves user with colored terminal

Open Vbbab opened this issue 3 years ago • 29 comments

(If this doesn't belong here, please tell me which repo to move it to, thanks!)

Problem

rustup's setup script, rustup-init, leaves the user with a colored terminal when exiting interrupted.

Steps

  1. Execute rustup-init
  2. At the first prompt, interrupt by Ctrl-C
  3. User's shell is now red.

Possible Solution(s) Check the interrupted-exit code maybe? Make sure that the color is reset before exiting (Since ^C is displayed in red)

Notes

OS: Win 10 (1909) Output of rustup --version: rustup 1.23.0 (00924c9ba 2020-11-27) Output of rustup-init --version: rustup-init 1.22.1 (b01adbbc3 2020-07-08) Output of rustup show:

Default host: x86_64-pc-windows-msvc
rustup home:  C:\Users\kangj\.rustup

installed toolchains
--------------------

stable-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc (default)

active toolchain
----------------

nightly-x86_64-pc-windows-msvc (default)
rustc 1.48.0-nightly (6af1bdda5 2020-09-15)

Vbbab avatar Dec 01 '20 00:12 Vbbab