forked from ish-app/ish
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do screen updates on the next frame, animate resizing in sync with keyboard, remove status bar, transparent background for the terminal
- Loading branch information
Showing
8 changed files
with
107 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// DelayedUITask.h | ||
// iSH | ||
// | ||
// Created by Theodore Dubois on 11/8/17. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
|
||
@interface DelayedUITask : NSObject | ||
|
||
- (instancetype)initWithTarget:(id)target action:(SEL)action; | ||
- (void)schedule; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// | ||
// DelayedUITask.m | ||
// iSH | ||
// | ||
// Created by Theodore Dubois on 11/8/17. | ||
// | ||
|
||
#import "DelayedUITask.h" | ||
|
||
@interface DelayedUITask () | ||
|
||
@property id target; | ||
@property SEL action; | ||
@property NSTimer *timer; | ||
|
||
@end | ||
|
||
@implementation DelayedUITask | ||
|
||
- (instancetype)initWithTarget:(id)target action:(SEL)action { | ||
if (self = [super init]) { | ||
self.target = target; | ||
self.action = action; | ||
} | ||
return self; | ||
} | ||
|
||
- (void)schedule { | ||
if (!self.timer.valid) { | ||
self.timer = [NSTimer timerWithTimeInterval:1.0/60 target:self.target selector:self.action userInfo:nil repeats:NO]; | ||
[NSRunLoop.mainRunLoop addTimer:self.timer forMode:NSDefaultRunLoopMode]; | ||
} | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ html, body, #terminal { | |
margin: 0; | ||
} | ||
|
||
body { | ||
background: transparent; | ||
} | ||
|
||
#terminal { | ||
padding: 0 5px; | ||
} | ||
|