File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,8 @@ def __init__(self, repl=None):
52
52
53
53
super ().__init__ ()
54
54
55
- def pager (self , output ):
56
- self ._repl .pager (output )
55
+ def pager (self , output , title = "" ):
56
+ self ._repl .pager (output , title )
57
57
58
58
def __call__ (self , * args , ** kwargs ):
59
59
if self ._repl .reevaluating :
Original file line number Diff line number Diff line change @@ -2101,10 +2101,10 @@ def focus_on_subprocess(self, args):
2101
2101
finally :
2102
2102
signal .signal (signal .SIGWINCH , prev_sigwinch_handler )
2103
2103
2104
- def pager (self , text : str ) -> None :
2105
- """Runs an external pager on text
2104
+ def pager (self , text : str , title : str = "" ) -> None :
2105
+ """Runs an external pager on text"""
2106
2106
2107
- text must be a str"""
2107
+ # TODO: make less handle title
2108
2108
command = get_pager_command ()
2109
2109
with tempfile .NamedTemporaryFile () as tmp :
2110
2110
tmp .write (text .encode (getpreferredencoding ()))
You can’t perform that action at this time.
0 commit comments