2424)
2525from .._typing_compat import Literal
2626
27- import blessings
2827import greenlet
2928from curtsies import (
3029 FSArray ,
3736)
3837from curtsies .configfile_keynames import keymap as key_dispatch
3938from curtsies .input import is_main_thread
39+ from curtsies .window import BaseWindow
4040from cwcwidth import wcswidth
4141from pygments import format as pygformat
4242from pygments .formatters import TerminalFormatter
@@ -326,6 +326,7 @@ class BaseRepl(Repl):
326326 def __init__ (
327327 self ,
328328 config : Config ,
329+ window : BaseWindow ,
329330 locals_ : Optional [Dict [str , Any ]] = None ,
330331 banner : Optional [str ] = None ,
331332 interp : Optional [Interp ] = None ,
@@ -340,6 +341,7 @@ def __init__(
340341 """
341342
342343 logger .debug ("starting init" )
344+ self .window = window
343345
344346 # If creating a new interpreter on undo would be unsafe because initial
345347 # state was passed in
@@ -2077,7 +2079,7 @@ def focus_on_subprocess(self, args):
20772079 try :
20782080 signal .signal (signal .SIGWINCH , self .orig_sigwinch_handler )
20792081 with Termmode (self .orig_stdin , self .orig_tcattrs ):
2080- terminal = blessings . Terminal ( stream = sys . __stdout__ )
2082+ terminal = self . window . t
20812083 with terminal .fullscreen ():
20822084 sys .__stdout__ .write (terminal .save )
20832085 sys .__stdout__ .write (terminal .move (0 , 0 ))
0 commit comments