You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The regular "console" Terminal which runs upon executing node is created by the following.
It just creates a new Terminal and applies the layout. The document in which the layout lies is created using this.term.createDocument() inside the Interface class. The terminal is configured as fullscreen inside the Interface class.
var consoleTerminal = termkit.createTerminal({
appName: "BALLON via Console Host",
isSSH: false,
isTTY: true
})
var consoleInterface = new Interface(consoleTerminal);
consoleInterface.setupLayout();
logInfo("Console", "Created console interface!");
Using the pseudo-terminal, I cannot generate a new terminal that wont crash (when supplying stdio options).
I have a Interface-Class which essentialy provides my document, layout and textboxes / input.
This works "fine" on the regular console where I start the application. It does not correctly size itself on start, I have to resize it one time manually to get it displayed correctly.
Further, the Pseudo-Terminal is supposed to be connected to a SSH2 session, which uses "streams2" (?), which looks like a duplex-stream if I understood it correctly. I havent connected/piped this part yet, therefore nothing should be on the pseudoterminal.
Apparently, it generates some kind of issues. I assume that some kind of while-loop does not exit and therefore the code wont continue.
It actually also breaks the debugger. I cannot finish a CPU-Profile, nor a heap-snapshot which i find interesting.
I dont know how i can help you with debugging further.
If you have ideas or if you need further information, please dont hesitate to contanct me :)
The text was updated successfully, but these errors were encountered:
Hello!
I have an issue in regards to the createTerminal() function of termkit.
I have the following code:
This is essentially creating a ptty. It provides Write- and ReadStreams.
I would like to create a new termkit terminal on this pseudo-tty:
This is the code I use to create a new Terminal.
The regular "console" Terminal which runs upon executing node is created by the following.
It just creates a new Terminal and applies the layout. The document in which the layout lies is created using this.term.createDocument() inside the Interface class. The terminal is configured as fullscreen inside the Interface class.
Using the pseudo-terminal, I cannot generate a new terminal that wont crash (when supplying stdio options).
My code is similar/identical to most parts to this: https:/jwarkentin/node-monkey/blob/256e7b37746b030965b49a2ccbb435ed29f7128a/src/server/ssh-manager.js
I do not have the prompt functions, and dont have a write class since my SSH-terminal is supposed to have the same view as the consoleTerminal with the layout.
To be precise, this is the SSH-Console module:
I have a Interface-Class which essentialy provides my document, layout and textboxes / input.
This works "fine" on the regular console where I start the application. It does not correctly size itself on start, I have to resize it one time manually to get it displayed correctly.
Further, the Pseudo-Terminal is supposed to be connected to a SSH2 session, which uses "streams2" (?), which looks like a duplex-stream if I understood it correctly. I havent connected/piped this part yet, therefore nothing should be on the pseudoterminal.
Apparently, it generates some kind of issues. I assume that some kind of while-loop does not exit and therefore the code wont continue.
It actually also breaks the debugger. I cannot finish a CPU-Profile, nor a heap-snapshot which i find interesting.
I dont know how i can help you with debugging further.
If you have ideas or if you need further information, please dont hesitate to contanct me :)
The text was updated successfully, but these errors were encountered: