emulators can specify their character generator.

This commit is contained in:
Kelvin Sherlock 2018-02-28 10:22:55 -05:00
parent b766854f80
commit e7ebb7b573
2 changed files with 9 additions and 0 deletions

View File

@ -28,6 +28,7 @@ extern "C" unsigned EventCharacters(NSEvent *event, std::u32string &rv);
#import "iGeometry.h"
@class CharacterGenerator;
@interface EmulatorManager : NSObject
@ -63,5 +64,6 @@ extern "C" unsigned EventCharacters(NSEvent *event, std::u32string &rv);
@optional
-(void)initTerm: (struct termios *)term;
-(CharacterGenerator *)characterGenerator;
@end

View File

@ -276,6 +276,13 @@
[_colorView setWantsLayer: YES];
[_colorView setContentFilters: [self effectsFilter]];
if ([_emulator respondsToSelector: @selector(characterGenerator)]) {
id tmp = [_emulator characterGenerator];
[(EmulatorWindow *)window setTitleCharacterGenerator:tmp];
}
[self initPTY];
}