Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Gurrium committed Mar 19, 2023
1 parent c109413 commit ec8d85b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/SwiftKilo/SwiftKilo.swift
Expand Up @@ -34,8 +34,9 @@ public class SwiftKilo {
tcgetattr(STDIN_FILENO, &origTermios)

var new = origTermios
new.c_iflag &= ~tcflag_t(ICRNL | IXON)
new.c_iflag &= ~tcflag_t(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
new.c_oflag &= ~tcflag_t(OPOST)
new.c_cflag |= tcflag_t(CS8)
new.c_lflag &= ~tcflag_t(ECHO | ICANON | IEXTEN | ISIG)

tcsetattr(STDIN_FILENO, TCSAFLUSH, &new)
Expand Down

0 comments on commit ec8d85b

Please sign in to comment.