mirror of https://github.com/fairyglade/ly.git
Removed code give up TTY and take back TTY
This commit is contained in:
parent
c54ca6761d
commit
798d9d934c
|
@ -704,9 +704,6 @@ pub fn main() !void {
|
||||||
const password_text = try allocator.dupeZ(u8, password.text.items);
|
const password_text = try allocator.dupeZ(u8, password.text.items);
|
||||||
defer allocator.free(password_text);
|
defer allocator.free(password_text);
|
||||||
|
|
||||||
// Give up control on the TTY
|
|
||||||
// _ = termbox.tb_shutdown();
|
|
||||||
|
|
||||||
session_pid = try std.posix.fork();
|
session_pid = try std.posix.fork();
|
||||||
if (session_pid == 0) {
|
if (session_pid == 0) {
|
||||||
const current_environment = session.label.list.items[session.label.current];
|
const current_environment = session.label.list.items[session.label.current];
|
||||||
|
@ -721,10 +718,6 @@ pub fn main() !void {
|
||||||
session_pid = -1;
|
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();
|
const auth_err = shared_err.readError();
|
||||||
if (auth_err) |err| {
|
if (auth_err) |err| {
|
||||||
auth_fails += 1;
|
auth_fails += 1;
|
||||||
|
|
Loading…
Reference in New Issue