Any solutions on Windows terminals?
-
Since most of the Qt terminal emulators are based on *nix-systems, which are far differ from Windows', there's few Windows terminal emulators. Either they're too complex or I can't go through their code (disclaimer: my bad, not their bad).
So I've a new idea: if it's Windows-only and Windows-problematic, why don't we use the ActiveX control provided by Qt to embed a powershell into the
QMainWindow
, as aQWidget
?But after I've gone through all those documentations, I've had no help on embedding the powershell...
Are there any solutions, any help will be appreciated. Thank in advance.
-
Qt Creator now comes with a built-in terminal, maybe look how they have implemented it?
-
I don't know the code of Qt Creator, sorry. Maybe try grepping the sources for some phrases like "Terminal" or "Create a new Terminal.". These should take you pretty close.
-
Seemingly, it lies on here:
But the code base is way too large and I can't comprehend (disclaimer once again: my bad, not theirs). However, I've found that some useful repositories, like
termqt
by Terry Geng (written in Python, but I'll dig in). It seems it usedpywinpty
to emulate the functionalities...
Anyway, I'm not urgently needing it right now. Let me take a sip of my coffee and work on it step by step, without being too hastily.