Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

fixed bug that overwrites saved stty settings #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sketch98
Copy link
Contributor

@Sketch98 Sketch98 commented Aug 6, 2021

To reproduce the bug, start shfm, resize your terminal to trigger SIGWINCH's trap, then exit shfm. You'll notice that icanon and echo are disabled even though term_reset should've reset those. At program start, stty is saved so that it can be restored at exit. SIGWINCH's trap calls term_setup which overwrites stty unnecessarily. I moved stty set out of term_setup to avoid this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant