Skip to content

Commit

Permalink
Add support for del button. Refs blinksh#559
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Oct 4, 2018
1 parent 63a1daa commit b97b2f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Blink/TermInput.m
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,11 @@ - (void)insertText:(NSString *)text
}
}

// Delete forward. See https://github.com/blinksh/blink/issues/559
- (void)_deleteForwardAndNotify:(bool)notify {
[_device write:@"\x1b\x5b\x33\x7e"];
}

- (void)deleteBackward
{
if (_markedText.length == 1) {
Expand Down

0 comments on commit b97b2f0

Please sign in to comment.