Jon
Jon

Reputation: 51

Is it possible to embed a terminal window within a cocoa xib/nib?

I looked at another questions (which i could only find one) which asked something similar more than few years ago, but none of the links mentioned seem to be relevant or work anymore.

I am wondering if it's possible without going to extremes to embed a terminal window displaying a tool such as top (an interactive command-line tool) in a tty output embedded within the gui of a cocoa app (os x). I tried some things with NSTask, but clearly that isn't the way to go.

I'm really looking for a starting place to go off... or if this type of thing is even within reason. thanks

Upvotes: 5

Views: 789

Answers (1)

sunshinejr
sunshinejr

Reputation: 4854

You can use NMSSH lib and example they gave here. Basically they made interactive terminal view controller, so you can use it for your needs.

Upvotes: 2

Related Questions