Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (27 sloc) 586 Bytes
//
// SendTextTrigger.m
// iTerm
//
// Created by George Nachman on 9/24/11.
//
#import "SendTextTrigger.h"
#import "PTYSession.h"
@implementation SendTextTrigger
- (NSString *)title
{
return @"Send Text…";
}
- (BOOL)takesParameter
{
return YES;
}
- (NSString *)paramPlaceholder
{
return @"Enter text to send";
}
- (void)performActionWithValues:(NSArray *)values inSession:(PTYSession *)aSession
{
NSString *message = [self paramWithBackreferencesReplacedWithValues:values];
[aSession writeTask:[message dataUsingEncoding:NSUTF8StringEncoding]];
}
@end