| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,6 +72,10 @@ def next(self): | |||
| 72 | 72 | self.data = self.data[index + 4 :] | |
| 73 | 73 | self.transport.write(input.encode(encoding)) | |
| 74 | 74 | self.state = next(self.states) | |
| 75 | + elif self.data == "\x1b[6n": | ||
| 76 | + # this is a cursor position query | ||
| 77 | + # respond that cursor is on row 2, column 1 | ||
| 78 | + self.transport.write("\x1b[2;1R".encode(encoding)) | ||
| 75 | 79 | else: | |
| 76 | 80 | self.transport.closeStdin() | |
| 77 | 81 | if self.transport.pid is not None: | |
@@ -94,6 +98,7 @@ def processExited(self, reason): | |||
| 94 | 98 | f"bpython.{self.backend}", | |
| 95 | 99 | "--config", | |
| 96 | 100 | str(TEST_CONFIG), | |
| 101 | + "-q", # prevents version greeting | ||
| 97 | 102 | ), | |
| 98 | 103 | env={ | |
| 99 | 104 | "TERM": "vt100", | |
@@ -128,6 +133,11 @@ def check_no_traceback(self, data): | |||
| 128 | 133 | self.assertNotIn("Traceback", data) | |
| 129 | 134 | ||
| 130 | 135 | ||
| 136 | + @unittest.skipIf(reactor is None, "twisted is not available") | ||
| 137 | + class CurtsiesCrashersTest(TrialTestCase, CrashersTest): | ||
| 138 | + backend = "curtsies" | ||
| 139 | + | ||
| 140 | + | ||
| 131 | 141 | @unittest.skipIf(reactor is None, "twisted is not available") | |
| 132 | 142 | class CursesCrashersTest(TrialTestCase, CrashersTest): | |
| 133 | 143 | backend = "cli" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments