From mboxrd@z Thu Jan 1 00:00:00 1970 From: wmorgan-sup@masanjin.net (William Morgan) Date: Wed, 09 Jan 2008 15:02:05 -0800 Subject: [sup-talk] interface blinking and corrupted on the console In-Reply-To: <1199912893-sup-5782@tomsk> References: <1199537691-sup-493@clarabella.clarabella> <1199557847-sup-5728@south> <1199563333-sup-1769@tomsk> <1199894905-sup-3585@south> <1199912893-sup-5782@tomsk> Message-ID: <1199919253-sup-9556@south> Excerpts from Marcus Williams's message of Wed Jan 09 13:09:47 -0800 2008: > I get lots of @in_x not initialised errors at the terminal title line > (that ends && @in_x) Is the initialise routine called before the > buffer titles are set? Whoops, I did something silly. Try it now. I just applied: 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 -- William