A minimal Unix-style login system written in C.
This project demonstrates low-level terminal handling using termios,
raw input mode, signal handling with sigaction, and masked password input.
- Raw terminal mode (non-canonical input)
- Disabled input echo for password masking
- Signal-safe input handling (SIGINT support)
- Backspace support
- EOF (Ctrl+D) handling
- Simple credential verification from file
- Uses
tcgetattr()andtcsetattr()to switch terminal into raw mode. - Disables
ICANONandECHOflags. - Reads input character-by-character using
read(). - Masks password characters with
*. - Handles
SIGINTsafely usingsigaction. - Verifies credentials from
data.txt.