Removed code give up TTY and take back TTY

This commit is contained in:
peterc-s 2024-10-22 12:26:18 +01:00
parent c54ca6761d
commit 798d9d934c
No known key found for this signature in database
GPG Key ID: 41E806B8F7F83E59
1 changed files with 0 additions and 7 deletions

View File

@ -704,9 +704,6 @@ pub fn main() !void {
const password_text = try allocator.dupeZ(u8, password.text.items);
defer allocator.free(password_text);
// Give up control on the TTY
// _ = termbox.tb_shutdown();
session_pid = try std.posix.fork();
if (session_pid == 0) {
const current_environment = session.label.list.items[session.label.current];
@ -721,10 +718,6 @@ pub fn main() !void {
session_pid = -1;
}
// Take back control of the TTY
_ = termbox.tb_init();
_ = termbox.tb_set_output_mode(termbox.TB_OUTPUT_NORMAL);
const auth_err = shared_err.readError();
if (auth_err) |err| {
auth_fails += 1;