{"id":258,"date":"2007-04-25T00:44:30","date_gmt":"2007-04-24T21:44:30","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=258"},"modified":"2007-04-25T00:52:18","modified_gmt":"2007-04-24T21:52:18","slug":"searching-the-scrollback-buffer-of-mrxvt","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/","title":{"rendered":"searching the scrollback buffer of mrxvt"},"content":{"rendered":"<p>As <a href=\"http:\/\/materm.sourceforge.net\/wiki\/FAQ\/Tips\">mrxvt tips page<\/a> says, there is a way to search the scrollback buffer. The uses of this are infinite&#8230;<\/p>\n<p>The code on the page though was a bit problematic (at least for me), so I slightly modified it to work:<br \/>\n<code><br \/>\nMrxvt.macro.Primary+Ctrl+Shift+question: PrintScreen -ps perl -e '$_=join(\"\",&lt;STDIN&gt;); s\/\\n+$\/\\n\/g; print' &gt; \/tmp\/scrollback<br \/>\nMrxvt.macro.Primary+Add+Ctrl+Shift+question: NewTab \"(Search)\" !less -ifLR +G \/tmp\/scrollback; rm -f \/tmp\/scrollback<br \/>\nMrxvt.macro.Primary+Ctrl+slash: PrintScreen -s perl -e '$_=join(\"\",&lt;STDIN&gt;); s\/\\n+$\/\\n\/g; print' &gt; \/tmp\/scrollback<br \/>\nMrxvt.macro.Primary+Add+Ctrl+slash: NewTab \"(Search)\" !view +\"syn off|set nospell notitle |normal G\" \/tmp\/scrollback; rm -f \/tmp\/scrollback<br \/>\n<\/code><\/p>\n<p>What I&#8217;ve changed is that I replaced the old &#8220;\/bin\/sh -c&#8221; with a simple &#8220;!&#8221;. The manpage of mrxvt has more info about &#8220;!&#8221;  (line 434). I&#8217;ve also added a &#8220;-f&#8221; flag to the rm command at the end.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As mrxvt tips page says, there is a way to search the scrollback buffer. The uses of this are infinite&#8230; The code on the page though was a bit problematic (at least for me), so I slightly modified it to work: Mrxvt.macro.Primary+Ctrl+Shift+question: PrintScreen -ps perl -e &#8216;$_=join(&#8220;&#8221;,&lt;STDIN&gt;); s\/\\n+$\/\\n\/g; print&#8217; &gt; \/tmp\/scrollback Mrxvt.macro.Primary+Add+Ctrl+Shift+question: NewTab &#8220;(Search)&#8221; !less [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-258","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"As mrxvt tips page says, there is a way to search the scrollback buffer. The uses of this are infinite... The code on the page though was a bit problematic (at least for me), so I slightly modified it to work: Mrxvt.macro.Primary+Ctrl+Shift+question: PrintScreen -ps perl -e &#039;$_=join(&quot;&quot;,); s\/\\n+$\/\\n\/g; print&#039; &gt; \/tmp\/scrollback Mrxvt.macro.Primary+Add+Ctrl+Shift+question: NewTab &quot;(Search)&quot; !less\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"kargig\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2007\\\/04\\\/25\\\/searching-the-scrollback-buffer-of-mrxvt\\\/#article\",\"name\":\"searching the scrollback buffer of mrxvt | Into.the.Void.\",\"headline\":\"searching the scrollback buffer of mrxvt\",\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"},\"datePublished\":\"2007-04-25T00:44:30+03:00\",\"dateModified\":\"2007-04-25T00:52:18+03:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2007\\\/04\\\/25\\\/searching-the-scrollback-buffer-of-mrxvt\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2007\\\/04\\\/25\\\/searching-the-scrollback-buffer-of-mrxvt\\\/#webpage\"},\"articleSection\":\"Linux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2007\\\/04\\\/25\\\/searching-the-scrollback-buffer-of-mrxvt\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"position\":2,\"name\":\"Linux\",\"item\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2007\\\/04\\\/25\\\/searching-the-scrollback-buffer-of-mrxvt\\\/#listItem\",\"name\":\"searching the scrollback buffer of mrxvt\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2007\\\/04\\\/25\\\/searching-the-scrollback-buffer-of-mrxvt\\\/#listItem\",\"position\":3,\"name\":\"searching the scrollback buffer of mrxvt\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/category\\\/linux\\\/#listItem\",\"name\":\"Linux\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"sameAs\":[\"https:\\\/\\\/x.com\\\/kargig\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/\",\"name\":\"kargig\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2007\\\/04\\\/25\\\/searching-the-scrollback-buffer-of-mrxvt\\\/#webpage\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2007\\\/04\\\/25\\\/searching-the-scrollback-buffer-of-mrxvt\\\/\",\"name\":\"searching the scrollback buffer of mrxvt | Into.the.Void.\",\"description\":\"As mrxvt tips page says, there is a way to search the scrollback buffer. The uses of this are infinite... The code on the page though was a bit problematic (at least for me), so I slightly modified it to work: Mrxvt.macro.Primary+Ctrl+Shift+question: PrintScreen -ps perl -e '$_=join(\\\"\\\",); s\\\/\\\\n+$\\\/\\\\n\\\/g; print' > \\\/tmp\\\/scrollback Mrxvt.macro.Primary+Add+Ctrl+Shift+question: NewTab \\\"(Search)\\\" !less\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/2007\\\/04\\\/25\\\/searching-the-scrollback-buffer-of-mrxvt\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/author\\\/site-admin\\\/#author\"},\"datePublished\":\"2007-04-25T00:44:30+03:00\",\"dateModified\":\"2007-04-25T00:52:18+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/\",\"name\":\"Into.the.Void.\",\"description\":\"Into The Void\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.void.gr\\\/kargig\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"searching the scrollback buffer of mrxvt | Into.the.Void.","description":"As mrxvt tips page says, there is a way to search the scrollback buffer. The uses of this are infinite... The code on the page though was a bit problematic (at least for me), so I slightly modified it to work: Mrxvt.macro.Primary+Ctrl+Shift+question: PrintScreen -ps perl -e '$_=join(\"\",); s\/\\n+$\/\\n\/g; print' > \/tmp\/scrollback Mrxvt.macro.Primary+Add+Ctrl+Shift+question: NewTab \"(Search)\" !less","canonical_url":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/#article","name":"searching the scrollback buffer of mrxvt | Into.the.Void.","headline":"searching the scrollback buffer of mrxvt","author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"},"datePublished":"2007-04-25T00:44:30+03:00","dateModified":"2007-04-25T00:52:18+03:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/#webpage"},"isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/#webpage"},"articleSection":"Linux"},{"@type":"BreadcrumbList","@id":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","position":1,"name":"Home","item":"https:\/\/www.void.gr\/kargig\/blog\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","name":"Linux"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","position":2,"name":"Linux","item":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/#listItem","name":"searching the scrollback buffer of mrxvt"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/#listItem","position":3,"name":"searching the scrollback buffer of mrxvt","previousItem":{"@type":"ListItem","@id":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/#listItem","name":"Linux"}}]},{"@type":"Organization","@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization","name":"Into.the.Void.","description":"Into The Void","url":"https:\/\/www.void.gr\/kargig\/blog\/","sameAs":["https:\/\/x.com\/kargig"]},{"@type":"Person","@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author","url":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/","name":"kargig"},{"@type":"WebPage","@id":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/#webpage","url":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/","name":"searching the scrollback buffer of mrxvt | Into.the.Void.","description":"As mrxvt tips page says, there is a way to search the scrollback buffer. The uses of this are infinite... The code on the page though was a bit problematic (at least for me), so I slightly modified it to work: Mrxvt.macro.Primary+Ctrl+Shift+question: PrintScreen -ps perl -e '$_=join(\"\",); s\/\\n+$\/\\n\/g; print' > \/tmp\/scrollback Mrxvt.macro.Primary+Add+Ctrl+Shift+question: NewTab \"(Search)\" !less","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/#breadcrumblist"},"author":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"creator":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/author\/site-admin\/#author"},"datePublished":"2007-04-25T00:44:30+03:00","dateModified":"2007-04-25T00:52:18+03:00"},{"@type":"WebSite","@id":"https:\/\/www.void.gr\/kargig\/blog\/#website","url":"https:\/\/www.void.gr\/kargig\/blog\/","name":"Into.the.Void.","description":"Into The Void","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.void.gr\/kargig\/blog\/#organization"}}]}},"aioseo_meta_data":{"post_id":"258","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2022-01-04 11:59:22","updated":"2026-10-21 09:28:57","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/\" title=\"Linux\">Linux<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">\u00bb<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tsearching the scrollback buffer of mrxvt\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/www.void.gr\/kargig\/blog\/"},{"label":"Linux","link":"https:\/\/www.void.gr\/kargig\/blog\/category\/linux\/"},{"label":"searching the scrollback buffer of mrxvt","link":"https:\/\/www.void.gr\/kargig\/blog\/2007\/04\/25\/searching-the-scrollback-buffer-of-mrxvt\/"}],"views":5364,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/258","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":0,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}