• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ObjC stdin equivalent? and other questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >ObjC stdin equivalent? and other questions (From: William Squires <email@hidden>)

  • Prev by Date: ScriptingBridge Not working same as Applescript
  • Next by Date: Re: [iOS] Any way to connect to serial port in simulator?
  • Previous by thread: Re: ObjC stdin equivalent? and other questions
  • Next by thread: Printing graphics plus text
  • Index(es):
    • Date
    • Thread