Skip to content

Commit c155632

Browse files
committed
FIXED: (POTENTIALLY) #85 (comment)
1 parent e143e35 commit c155632

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TUIFIManager/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def __init__(self, y=0, x=0, height=30, width=45, anchor=(False,False,False,Fals
152152
self.load_markers ()
153153
self.load_commands ()
154154
self.__set_normal_events()
155-
if stty_a('^Z') : signal.signal(signal.SIGTSTP, self.suspend_proccess)
156-
if stty_a('^C') or IS_WINDOWS : signal.signal(signal.SIGINT , self.copy ) # https://docs.microsoft.com/en-us/windows/console/ctrl-c-and-ctrl-break-signals
155+
if not IS_WINDOWS and stty_a('^Z') : signal.signal(signal.SIGTSTP, self.suspend_proccess)
156+
if IS_WINDOWS or stty_a('^C') : signal.signal(signal.SIGINT , self.copy ) # https://docs.microsoft.com/en-us/windows/console/ctrl-c-and-ctrl-break-signals
157157
if os.getenv('tuifi_vim_mode', str(vim_mode)) == 'True' : self.toggle_vim_mode()
158158
if IS_DRAG_N_DROP: self.drag_and_drop = SyntheticXDND(self.handle_gui_to_tui_dropped_file, self.__get_selected_files) #NOTE: https://stackoverflow.com/a/14829479/11465149
159159

0 commit comments

Comments
 (0)