Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Apr 14, 2012
@ConradIrwin ConradIrwin Add <delete>, <home>, and <end> 2a175d3
@Mon-Ouie Merge pull request #2 from ConradIrwin/master
Add <Home>, <End> and <Delete> key support
83ce67e
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/coolline/coolline.rb
View
5 lib/coolline/coolline.rb
@@ -46,10 +46,15 @@ class Coolline
Handler.new("\ef", &:forward_word),
Handler.new("\e[A", &:previous_history_line),
Handler.new("\e[B", &:next_history_line),
+ Handler.new("\e[3~", &:kill_current_char),
Handler.new("\e[5~", &:previous_history_line),
Handler.new("\e[6~", &:next_history_line),
+ Handler.new("\e[7~", &:beginning_of_line),
+ Handler.new("\e[8~", &:end_of_line),
Handler.new("\e[C", &:forward_char),
Handler.new("\e[D", &:backward_char),
+ Handler.new("\e[F", &:end_of_line),
+ Handler.new("\e[H", &:beginning_of_line),
Handler.new("\et", &:transpose_words),
Handler.new("\ec", &:capitalize_word),
Handler.new("\eu", &:uppercase_word),

No commit comments for this range

Something went wrong with that request. Please try again.