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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com