-
Notifications
You must be signed in to change notification settings - Fork 1
/
MouseTerm.h
47 lines (37 loc) · 891 Bytes
/
MouseTerm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#import <Cocoa/Cocoa.h>
// Classes from Terminal.app being overridden
#ifdef __x86_64__
typedef unsigned long long linecount_t;
#else
typedef unsigned int linecount_t;
#endif
typedef struct
{
linecount_t y;
linecount_t x;
} Position;
@interface TTShell: NSObject
- (void) writeData: (NSData*) data;
@end
@interface TTLogicalScreen: NSObject
- (BOOL) isAlternateScreenActive;
- (linecount_t) lineCount;
@end
@interface TTPane: NSObject
- (NSScroller*) scroller;
@end
@interface TTTabController
- (TTShell*) shell;
@end
@interface NSObject (MouseTermTTTabController)
- (TTShell*) shell;
@end
@interface NSView (MouseTermTTView)
- (TTLogicalScreen*) logicalScreen;
- (linecount_t) rowCount;
- (TTPane*) pane;
- (TTTabController*) controller;
- (Position) displayPositionForPoint: (NSPoint) point;
@end
// Custom instance variables
extern NSMutableDictionary* MouseTerm_ivars;