Skip to content

Commit

Permalink
Merge branch 'lukas/kernel/shell-improvements/OTP-19313/OTP-19314'
Browse files Browse the repository at this point in the history
  • Loading branch information
garazdawi committed Nov 26, 2024
2 parents 7d0ed8d + b301c8b commit 70e4f4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erts/emulator/nifs/common/prim_tty_nif.c
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,6 @@ static ERL_NIF_TERM tty_create_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM

static ERL_NIF_TERM tty_init_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[]) {

#if defined(HAVE_TERMCAP) || defined(__WIN32__)
ERL_NIF_TERM input;
TTYResource *tty;

Expand All @@ -957,6 +956,8 @@ static ERL_NIF_TERM tty_init_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar
return atom_ok;
}

#if defined(HAVE_TERMCAP) || defined(__WIN32__)

tty->tty = enif_is_identical(input, atom_raw) ? enabled : disabled;

#ifndef __WIN32__
Expand Down

0 comments on commit 70e4f4b

Please sign in to comment.