• 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: bill fancher <email@hidden>
  • Date: Thu, 26 Sep 2002 23:09:01 -0700

On Thursday, September 26, 2002, at 10:24 PM, bill fancher wrote:
On Wednesday, September 25, 2002, at 02:14 PM, Jeffrey Berman wrote:


However, I do
not want these unattended key sequences to trigger a line feed or it could
cause the text on the command line to be inadvertently executed. What made
an AppleScript solution so appealing is that the command can be issued even
when Terminal is not the frontmost application.

So the problem is how to have the "do script" command of Terminal send the
Control-T sequence (which is ASCII character 20) without also issuing a line
feed.

About the only thing I can think of: if the last line of the contents of the window matches the prompt string, don't send the "do script" command. It's a slovenly hack, but it might be serviceable.

That's not right. Should be: If the last line of the contents of the window matches the prompt string then send the "do script" command (otherwise something has been typed.)

--
bill
_______________________________________________
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.

  • Follow-Ups:
    • Re: Sending Control-T to Terminal
      • From: Jeffrey Berman <email@hidden>
References: 
 >Re: Sending Control-T to Terminal (From: bill fancher <email@hidden>)

  • Prev by Date: Re: Sending Control-T to Terminal
  • Next by Date: Re: Quick help with command keys...
  • Previous by thread: Re: Sending Control-T to Terminal
  • Next by thread: Re: Sending Control-T to Terminal
  • Index(es):
    • Date
    • Thread