Skip to content

Commit 61e327e

Browse files
committed
Move backup_termios out of __init__
1 parent 5af95f5 commit 61e327e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

src/TerminalUserInterfaces.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,4 @@ include("widgets/list.jl")
3030
include("widgets/barchart.jl")
3131
include("widgets/grid.jl")
3232

33-
function __init__()
34-
35-
backup_termios()
36-
37-
end
38-
3933
end # module

src/utils.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ function backup_termios()
196196
end
197197

198198
function initialize()
199+
backup_termios()
199200
tui_mode()
200201
hide_cursor()
201202
enable_raw_mode()

0 commit comments

Comments
 (0)