Skip to content

Commit 84c4f1d

Browse files
committed
Add a isatty() method to CLIRepl. Refs bpython#149.
Patch by Łukasz Langa.
1 parent 5c0b03f commit 84c4f1d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bpython/cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,9 @@ def home(self, refresh=True):
599599
self.scr.refresh()
600600
return True
601601

602+
def isatty(self):
603+
return True
604+
602605
def lf(self):
603606
"""Process a linefeed character; it only needs to check the
604607
cursor position and move appropriately so it doesn't clear

0 commit comments

Comments
 (0)