2010-07-08 22:26:58 +00:00
|
|
|
//
|
|
|
|
// TermWindowController.h
|
|
|
|
// 2Term
|
|
|
|
//
|
|
|
|
// Created by Kelvin Sherlock on 7/2/2010.
|
|
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
|
|
|
|
|
|
|
|
|
|
@class EmulatorView;
|
2016-07-08 00:54:52 +00:00
|
|
|
@class ColorView;
|
2010-12-18 17:40:58 +00:00
|
|
|
|
2010-10-05 18:56:45 +00:00
|
|
|
@protocol Emulator;
|
|
|
|
|
|
|
|
@interface TermWindowController : NSWindowController <NSWindowDelegate> {
|
2010-07-08 22:26:58 +00:00
|
|
|
|
2010-12-20 23:37:02 +00:00
|
|
|
NSDictionary *_parameters;
|
|
|
|
|
2010-12-18 17:40:58 +00:00
|
|
|
EmulatorView *_emulatorView;
|
2016-07-08 00:54:52 +00:00
|
|
|
ColorView *_colorView;
|
2010-12-18 17:40:58 +00:00
|
|
|
|
2010-12-20 23:37:02 +00:00
|
|
|
|
|
|
|
|
2010-10-05 18:56:45 +00:00
|
|
|
NSObject <Emulator> *_emulator;
|
|
|
|
|
2016-07-06 17:15:13 +00:00
|
|
|
int _fd;
|
|
|
|
pid_t _pid;
|
|
|
|
|
|
|
|
dispatch_source_t _read_source;
|
|
|
|
dispatch_source_t _wait_source;
|
|
|
|
|
2010-07-08 22:26:58 +00:00
|
|
|
}
|
|
|
|
|
2010-12-20 23:37:02 +00:00
|
|
|
@property (nonatomic, retain) NSDictionary *parameters;
|
|
|
|
|
2010-12-18 17:40:58 +00:00
|
|
|
@property (nonatomic, retain) IBOutlet EmulatorView *emulatorView;
|
2016-07-08 00:54:52 +00:00
|
|
|
@property (nonatomic, retain) IBOutlet ColorView *colorView;
|
2010-12-18 17:40:58 +00:00
|
|
|
|
2010-10-05 18:56:45 +00:00
|
|
|
@property (nonatomic, retain) NSObject<Emulator> *emulator;
|
|
|
|
|
2010-07-08 22:26:58 +00:00
|
|
|
-(void)initPTY;
|
|
|
|
|
|
|
|
@end
|