rensbreur / SwiftTUI

SwiftUI for terminal applications
MIT License
1.21k stars 44 forks source link

Fix issue 25 #26

Closed maartene closed 5 months ago

maartene commented 6 months ago

Fix for issue https://github.com/rensbreur/SwiftTUI/issues/25 - Can't get cursor back after closing the examples using Ctrl-C or Ctrl-D in SSH session

Resets ECHO and ICANON flags, allowing SwiftTUI to work correctly with bash and csh shell. Tested with zsh, tcsh, bash and csh on Linux. And zsh and bash on macOS.

rensbreur commented 5 months ago

Hi Maarten, thank you for opening a PR! I will check it later and then merge 🙏

rensbreur commented 5 months ago

Your fix works great, thank you! 🙌 I never checked using bash and never noticed it's broken.