Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

  • Mac/Cocoa: Embed a terminal window in my app

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

like image 683
Jon Avatar asked Oct 31 '22 16:10

Jon


1 Answers

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.

like image 50
sunshinejr Avatar answered Nov 08 '22 04:11

sunshinejr