Skip to content


Add <Home>, <End> and <Delete> key support #2

merged 1 commit into from

2 participants


I have two terminals on which the definitions for home and end differ; I hope that supporting both gives support for a wide-range of people.


Looks good to me. I'd also assume including multiple definitions isn't a problem, unless terminals have conflicting definitions of different keys.

@Mon-Ouie Mon-Ouie merged commit 83ce67e into Mon-Ouie:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 14, 2012
  1. @ConradIrwin
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/coolline/coolline.rb
5 lib/coolline/coolline.rb
@@ -46,10 +46,15 @@ class Coolline"\ef", &:forward_word),"\e[A", &:previous_history_line),"\e[B", &:next_history_line),
+"\e[3~", &:kill_current_char),"\e[5~", &:previous_history_line),"\e[6~", &:next_history_line),
+"\e[7~", &:beginning_of_line),
+"\e[8~", &:end_of_line),"\e[C", &:forward_char),"\e[D", &:backward_char),
+"\e[F", &:end_of_line),
+"\e[H", &:beginning_of_line),"\et", &:transpose_words),"\ec", &:capitalize_word),"\eu", &:uppercase_word),
Something went wrong with that request. Please try again.