pub fn tcgetattr(handle: fd_t) TermiosGetError!termios handle: fd_t1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174pub fn tcgetattr(handle: fd_t) TermiosGetError!termios {
while (true) {
var term: termios = undefined;
switch (errno(system.tcgetattr(handle, &term))) {
.SUCCESS => return term,
.INTR => continue,
.BADF => unreachable,
.NOTTY => return error.NotATerminal,
else => |err| return unexpectedErrno(err),
}
}
}