Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bind("key-down--z", \: (void; Event event)
- {
- use qt;
- use encoding;
- // process = qt.QProcess(mainWindowWidget());
- qprocess = QProcess(mainWindowWidget());
- connect(qprocess, QIODevice.readyRead,
- \: (void;)
- {
- while (qprocess.canReadLine())
- {
- let line = utf8_to_string(qprocess.readLine(0).constData());
- print("%s\n" % line);
- }
- });
- connect(qprocess, QProcess.finished,
- \: (void; int exitCode)
- {
- print("FINISHED\n");
- });
- qprocess.start("/bin/ls",
- string[] {"-al", "/Users/jimh/"},
- QIODevice.ReadOnly | QIODevice.Text);
- });
Add Comment
Please, Sign In to add comment