From 1fd9f93128a51a865939334a0afe329381694226 Mon Sep 17 00:00:00 2001 From: William Morgan Date: Wed, 9 Jan 2008 14:54:02 -0800 Subject: [PATCH] bugfix: title printing for appropriate TERM values @in_x needs to be defined in BufferManager, not Buffer --- lib/sup/buffer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/buffer.rb b/lib/sup/buffer.rb index f724f88..2a78787 100644 --- a/lib/sup/buffer.rb +++ b/lib/sup/buffer.rb @@ -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 -- 2.45.2