eworm-de / mkinitcpio-ykfde

Full disk encryption with Yubikey (Yubico key)
GNU General Public License v3.0
109 stars 26 forks source link

tcsetattr breaks terminal #16

Closed bpereto closed 7 years ago

bpereto commented 7 years ago

Hi,

the commit introduced in #14 breaks the terminal with shifted lines. Afterwards, no input to the terminal is displayed.

./ykfde -S
Please give current second factor:
  Failed setting terminal attributes.
                                     loaded device: luks-2e8cb1b1-8854-4838-a524-fa7573aeda52 
              loaded device: luks-7dcfeca3-15c1-4a33-8167-05428fcee703 
                                                                       Failed requesting key. That's ok if you do not use
                                         second factor. Give it manually if required.

Failed setting terminal attributes shows up at https://github.com/eworm-de/mkinitcpio-ykfde/blob/b5ad306ac967db3f3dace48952437b7729d31087/bin/ykfde.c#L94