Skip to content

Commit

Permalink
Merge pull request #68 from ergochat/tmux
Browse files Browse the repository at this point in the history
fix Home and End key behavior in tmux
  • Loading branch information
slingamn authored Aug 25, 2024
2 parents 6ffa77d + 3d1517f commit 8b2c520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,9 +386,9 @@ func (t *terminal) consumeANSIEscape(buf *bufio.Reader, ansiBuf *bytes.Buffer) (
switch string(ansiBuf.Bytes()) {
case "3":
r = MetaDeleteKey // this is the key typically labeled "Delete"
case "7":
case "1", "7":
r = CharLineStart // "Home" key
case "8":
case "4", "8":
r = CharLineEnd // "End" key
}
}
Expand Down

0 comments on commit 8b2c520

Please sign in to comment.