Re: ObjC stdin equivalent? and other questions
Re: ObjC stdin equivalent? and other questions
- Subject: Re: ObjC stdin equivalent? and other questions
- From: Jens Alfke <email@hidden>
- Date: Sun, 12 Jun 2011 21:48:26 -0700
On Jun 10, 2011, at 7:56 PM, William Squires wrote:
> Can a console app control the text 'cursor' in Terminal.app's window solely through stdio? (i.e. are there control codes that clear the screen, locate the cursor at some x,y location, set the text color/brightness (I know the man page reader can, at the very least, change the text brightness), position the cursor at the beginning/end of a line, etc…)
The Terminal app is just emulating an ANSI standard terminal. Search for “ANSI escape sequences” if you want the gory details. You basically write magic character sequences starting with ESC to stdout.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden