Skip to content

Commit

Permalink
Control chars are not set properly on a linux terminal, fixes #111
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Apr 12, 2017
1 parent 3424a8a commit 85fe02b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public void setAttr(Attributes attr) throws IOException {
org.c_iflag = termios.c_iflag;
org.c_oflag = termios.c_oflag;
org.c_lflag = termios.c_lflag;
System.arraycopy(termios.c_cc, 0, org.c_cc, 0, termios.c_cc.length);
C_LIBRARY.tcsetattr(getSlave(), TCSADRAIN, org);
}

Expand Down

0 comments on commit 85fe02b

Please sign in to comment.