Is there a QML widget which behaves like an interactive console? (Or have I to build it manually somehow)
I want to built such console into my qml application - it should behave simmilar to standard unix terminals.
There is indeed! Check out https://github.com/Swordfish90/qmltermwidget/ or https://github.com/jorgen/yat.
Here's a short example of how to use QMLTermWidget:
QMLTermWidget {
id: terminal
font.family: "Monospace"
font.pointSize: 12
colorScheme: "cool-retro-term"
session: QMLTermSession {
id: mainsession
initialWorkingDirectory: "$HOME"
}
Component.onCompleted: mainsession.startShellProgram();
}
We're using QMLTermWidget in the Terminal app for Papyros if you're looking for an larger/more complete example of how to use it.