]> git.cworth.org Git - sup/commitdiff
add 'screen' to the list of possible TERM values that allow title setting
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 9 Jan 2008 18:02:53 +0000 (10:02 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 9 Jan 2008 18:02:53 +0000 (10:02 -0800)
lib/sup/buffer.rb

index 782695b7655c2f64beb0249a3671bc13afe2ff11..f724f88e778fbf1a3d697d780ba1fac805f8460a 100644 (file)
@@ -63,7 +63,7 @@ class Buffer
     @title = opts[:title] || ""
     @force_to_top = opts[:force_to_top] || false
     @x, @y, @width, @height = 0, 0, width, height
-    @in_x = ENV["TERM"] =~ /(xterm|rxvt)/
+    @in_x = ENV["TERM"] =~ /(xterm|rxvt|screen)/
   end
 
   def content_height; @height - 1; end