Repository navigation
Replace custom terminal with advanced PTY terminal - #9
Conversation
|
Hi AlexHettle, This happens because the POSIX tests are correctly skipped on Windows, reducing the coverage. There are two ways this can be fixed without lowering fail_under:
I would go with the second option for now, since the terminal part is not really part of or maintained by MeadowPy yet. If there are bugs in it, they should go to pyqtterm not MeadowPy. By the way, MeadowPy already works almost perfectly fine on Linux, which is why I can do this. So getting Linux support should not be too hard. |
|
I have done that. |
|
Thanks for explaining, and again for all the work you’ve put into this! I understand the terminal code comes from your PyQtTerm project, but I’m hesitant to exclude the file from coverage on that basis alone. I’d be more comfortable with either of these approaches:
It's really important to have high coverage rates in a codebase and is a common business standard, it's a pivotal practice that helps prevent code from breaking with new changes over time especially when a project gets larger and more complex. Excluding the file might address the coverage number, but it doesn’t resolve that underlying concern. |
|
Ok, I will make more tests for the terminal. |
Added many terminal tests and removed omit of pyqtterm.py from coverage.
|
I added many terminal tests in meadowpy, is this fine? Also pyqtterm is not at all untested it is very well tested by myself in real terminal applications, with scripts, and in already-made tests like vttest, but it is correct that there are no tests on the git repository. |
Previously, this was the only test using (0, 0) directly instead of cell_xy. Fixed by using *cell_xy(terminal, 0, 0) instead.
|
Done, it was a simple fix. I saw all tests and the workflow pass. |
|
Hey there, Thanks for that last fix, and for this work overall. Merging now, in the future if I find issues with this new functionality I'll write it up and assign you to it. Thanks again! |


Replaced the custom terminal with an advanced PTY terminal (a PyQt port of PyTkTerm) and updated the terminal tests.
The terminal restarts on a key press after the process ends.
The terminal updates for the editor font but cannot change the editor font family (terminals should remain monospace font).