pre_prompt_hook' used to restore the Qt6 input hook (in case the latter was temporarily deactivated after a CTRL+C)
(ishell)
| 180 | return 0 |
| 181 | |
| 182 | def preprompthook_qt6(ishell): |
| 183 | """'pre_prompt_hook' used to restore the Qt6 input hook |
| 184 | |
| 185 | (in case the latter was temporarily deactivated after a |
| 186 | CTRL+C) |
| 187 | """ |
| 188 | global got_kbdint, sigint_timer |
| 189 | |
| 190 | if sigint_timer: |
| 191 | sigint_timer.cancel() |
| 192 | sigint_timer = None |
| 193 | |
| 194 | if got_kbdint: |
| 195 | mgr.set_inputhook(inputhook_qt6) |
| 196 | got_kbdint = False |
| 197 | |
| 198 | ip._inputhook_qt6 = inputhook_qt6 |
| 199 | ip.set_hook("pre_prompt_hook", preprompthook_qt6) |
nothing calls this directly
no test coverage detected