{"id":36,"date":"2009-06-08T14:47:58","date_gmt":"2009-06-08T12:47:58","guid":{"rendered":"http:\/\/log.or.cz\/?p=36"},"modified":"2009-06-08T14:48:34","modified_gmt":"2009-06-08T12:48:34","slug":"screen-in-xterm-and-mouse-reporting-problems","status":"publish","type":"post","link":"https:\/\/log.or.cz\/?p=36","title":{"rendered":"screen in xterm and mouse reporting problems"},"content":{"rendered":"<p>I&#8217;ve recently encountered a problem (on Debian Squeeze) with screen running in xterm, and applications using mouse reporting running inside &#8211; that is, an application that can be controlled using mouse while running in a terminal (in my case, elinks, and vim with <code>:set mouse=a<\/code> behaves the same although I don&#8217;t use that setting normally).<\/p>\n<p>Basically, when you start the application, mouse reporting will never be switched off again (unless you do it manually or use `<code>reset<\/code>`). Not when the application exits, and (more importantly) not when you switch to another screen window!<\/p>\n<p>I tracked this down to <code>autonuke on<\/code> in my ~\/.screenrc. Apparently the clear screen command goes _after_ the turn-off-mouse-reporting command, nuking it in the process. I have enabled this option in the past in the hope that it will be helpful in case I inadverently trigger huge amount of data being sent (I could just &#8220;<code>C-a -<\/code>&#8221; to clear my screen. Too bad this breaks it; maybe GNU screen could be made smarter about this and not nuke escape sequences, but I have heard that its developers are fairly unfriendly, so I won&#8217;t pursue this further as I don&#8217;t need it that badly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve recently encountered a problem (on Debian Squeeze) with screen running in xterm, and applications using mouse reporting running inside &#8211; that is, an application that can be controlled using mouse while running in a terminal (in my case, elinks, and vim with :set mouse=a behaves the same although I don&#8217;t use that setting normally). [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[23,21,20,22],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-linux","tag-elinks","tag-mouse","tag-screen","tag-xterm"],"_links":{"self":[{"href":"https:\/\/log.or.cz\/index.php?rest_route=\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/log.or.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/log.or.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/log.or.cz\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/log.or.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":2,"href":"https:\/\/log.or.cz\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":38,"href":"https:\/\/log.or.cz\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions\/38"}],"wp:attachment":[{"href":"https:\/\/log.or.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/log.or.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/log.or.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}