• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Writing a CLI Terminal in Cocoa (SOLVED)

hopejr

Senior member
I need to write a CLI Terminal for a Cisco Network Simulator, so users can configure devices and verify network connectivity using the Internet Operating System. I've tried many different ways of doing it, and my latest attempt is using an NSTextView subclass that overrides keyboard control (stopping the user from moving the insertion point onto the prompt or onto previous lines). The problem now is that when the user selects text in another part of the text view, the insertion point moves and so my overriding methods are completely useless (not that I could get them to work properly anyway). Does anyone have any idea how to fix this, or is there another way that I should do the terminal window?
If someone could get back to me about this ASAP, it would be good because I need it done by tomorrow.
Thanks.
 
I would, but this is meant to be part of a larger GUI app, so that won't work. I managed to get it to work though (I was trying to do too much, and finally worked out how to move the insertion point, and find it's position, just by using selected text ranges). Thanks anyway.
 
Back
Top