ANSI VT-100 Terminal Emulation
ANSI VT-100 Terminal Emulation
- Subject: ANSI VT-100 Terminal Emulation
- From: Tom Gray <email@hidden>
- Date: Sun, 30 Jun 2002 13:13:09 -0400
Howdy,
I am in need of creating an object that will allow me to capture an ANSI
VT-100 terminal session and display the information, hopefully, in a
NSTextView.
I am unable to use a third party terminal since I need to do encryption and
decryption on the stream and want to customize the interface. (Unless
someone knows of a way for me to pipe into and out of a third party
teminal.)
I am a new Cocoa programmer, fairly experienced at C and am a bit stumped.
My problem is I am trying to emulate old style, tabs, CR's, LF's, GoTo XY,
cursor position commands for an 80X24 terminal.
My first thoughts are to use a NSMutableString of 1920 bytes and display
this in a NSTextView bounded in such a way as to "wrap" the NSMutableString
to be 80X24. I plan to "write" into the string by replacing characters and
forcing a display. My method seems, well, rough.
I really am open to other ideas.
So, does anyone have a ANSI VT-100 object?
Does anyone have a good idea for how I can display an ANSI stream in a 80X24
type terminal?
Thanks in advance for your help!
--
Tom Gray
email@hidden
=========================================================
Crewdog Software / Airline Home Access & Bidding Software
www.crewdog.com / email@hidden / email@hidden
=========================================================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.