]> git.cworth.org Git - sup/commitdiff
bugfix: title printing for appropriate TERM values
authorWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 9 Jan 2008 22:54:02 +0000 (14:54 -0800)
committerWilliam Morgan <wmorgan-sup@masanjin.net>
Wed, 9 Jan 2008 22:54:02 +0000 (14:54 -0800)
@in_x needs to be defined in BufferManager, not Buffer

lib/sup/buffer.rb

index f724f88e778fbf1a3d697d780ba1fac805f8460a..2a7878710672de00c02679d1c4da8e61e810ef39 100644 (file)
@@ -63,7 +63,6 @@ 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|screen)/
   end
 
   def content_height; @height - 1; end
@@ -178,6 +177,7 @@ EOS
     @textfields = {}
     @flash = nil
     @shelled = @asking = false
+    @in_x = ENV["TERM"] =~ /(xterm|rxvt|screen)/
 
     self.class.i_am_the_instance self
   end