• 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: Sending Control-T to Terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending Control-T to Terminal


  • Subject: Re: Sending Control-T to Terminal
  • From: Chris Janton <email@hidden>
  • Date: Fri, 27 Sep 2002 11:21:19 -0700

However, your comment led me to think of an alternative: Before sending a
Control-T key sequence I could send a Control-U, which erases text on the
current command line. Thus, the command could be:

tell application "Terminal"
do script ((ASCII character 21) & (ASCII character 20)) in window 1
end tell

This sequence still generates the unwanted line feed but it avoids the
problems of inadvertently sending text left on the command line.

If you're "talking" to a VMS box you should consider using Control-X (24) which will clear the entire type-ahead buffer...that way there are *no* characters at all to worry about...

This bit will turn the current line into a comment which will allow you to recall the command line...

tell application "Terminal"
do script ((ASCII character (8)) & "!" & (ASCII character 20)) in window 1
end tell

8)
--
Chris 'face' Janton - netminder for Opus1
face at mail dot opus1 dot com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: String to multiple-item list coercion
  • Next by Date: Re: Mail - someone get me started!
  • Previous by thread: Re: Sending Control-T to Terminal
  • Next by thread: Re: Sending Control-T to Terminal
  • Index(es):
    • Date
    • Thread