isacikgoz / tldr

fast and interactive tldr client written with go
https://isacikgoz.me/tldr/
MIT License
1.36k stars 48 forks source link

console stdin breaks after <Ctrl+ C> during suggestion completion #37

Closed soypat closed 3 years ago

soypat commented 3 years ago

Installation information

I've built tldr++ from source using:

git clone https://github.com/isacikgoz/tldr/
cd cmd/tldr
go install

I'm using go version go1.15.3 linux/amd64 on ubuntu 20.04

Steps to reproduce

  1. tldr tar, for example
  2. Select any suggestion/option (press Enter)
  3. Press Ctrl + C

Expected behaviour

Now able to use bash/shell normally

Actual behaviour

Subsequent stdin and newlines after commands are not shown in console.

bug view Above is bug in action. I've typed Enter some times and echo hi.

PS. I've come into contact with this bug in the past when programming in Go when handling os.Stdout and os.Stdin.

soypat commented 3 years ago

closing due to age