Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add screen as a possible client #19

Closed
wants to merge 3 commits into from

3 participants

@thesamet

This patch originally appeared on https://wincent.com/issues/1860

@wagenet

Any reason why this hasn't been pulled yet? It seems useful and appears to work for me.

@thesamet

@wagenet, Not that I know of. Feel free to ping the bug at https://wincent.com/issues/1860

@wincent
Owner

I'm about to merge this into master. Thanks for the pull request.

@wincent wincent closed this
@blueyed blueyed referenced this pull request from a commit in blueyed/Command-T
@thesamet thesamet Add screen as a possible client
Amendments made to original pull request[1]:

  - fixed whitespace damage (trailing whitespace, 4-space indent)

[1]: wincent#19

Signed-off-by: Wincent Colaiuta <win@wincent.com>
aca53e9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 16, 2011
  1. @thesamet
Commits on Nov 24, 2011
  1. @thesamet
Commits on Jan 2, 2012
  1. @thesamet
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 1 deletion.
  1. +6 −1 ruby/command-t/controller.rb
View
7 ruby/command-t/controller.rb
@@ -256,6 +256,10 @@ def xterm?
def vt100?
!!(::VIM::evaluate('&term') =~ /\Avt100/)
end
+
+ def screen?
+ !!(::VIM::evaluate('&term') =~ /\Ascreen/)
+ end
def register_for_key_presses
# "normal" keys (interpreted literally)
@@ -289,7 +293,8 @@ def register_for_key_presses
end
else
[value].flatten.each do |mapping|
- map mapping, key unless mapping == '<Esc>' && (xterm? || vt100?)
+ map mapping, key unless mapping == '<Esc>' && (xterm? || vt100? ||
+ screen?)
end
end
end
Something went wrong with that request. Please try again.