{"id":8188,"date":"2015-11-30T00:51:02","date_gmt":"2015-11-30T00:51:02","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/11\/30\/tmux-borders-displayed-as-x-q-instead-of-lines-open-source-projects-kriskowal-q\/"},"modified":"2022-08-30T15:02:58","modified_gmt":"2022-08-30T15:02:58","slug":"tmux-borders-displayed-as-x-q-instead-of-lines-open-source-projects-kriskowal-q","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/11\/30\/tmux-borders-displayed-as-x-q-instead-of-lines-open-source-projects-kriskowal-q\/","title":{"rendered":"Tmux borders displayed as x q instead of lines?-open source projects kriskowal\/q"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c8134b3aced69c76a88722e3d36ba034?s=128&amp;d=identicon&amp;r=PG\" \/> <strong>Chris Johnsen<\/strong><\/p>\n<p>There is some mismatch between your terminal emulator and the <em>terminfo<\/em> database entry being used by <em>tmux<\/em> (the one named by the TERM environment variable when you start\/attach to a <em>tmux<\/em> server).<\/p>\n<p>Per the VT100 User Guide, Table 3-9: Special Graphics Characters, when the \u201cspecial graphics set\u201d is selected, <code>x<\/code> is used to draw the \u201cVertical bar\u201d and <code>q<\/code> is used to draw \u201cHorizontal line &#8211; Scan 5\u201d.<\/p>\n<p>Under <em>terminfo<\/em>, the VT100 special graphics characters are available as a part of the Alternate Character Set functionality; see the \u201cLine Graphics\u201d section of the <em>terminfo(5)<\/em> man page.<\/p>\n<p>Probably (on your Debian server) the effective <em>terminfo<\/em> database entry indicates that ACS is available, but your terminal emulator is not actually responding to the specified control sequences.<\/p>\n<p>The <em>tmux<\/em> CHANGES file indicates that some terminal emulators (e.g. Putty) do not respect the ACS control sequences when they are in UTF-8 mode. Thus, <em>tmux<\/em> 1.4 has a change that makes it always use UTF-8 characters instead of ACS sequences when the attaching client specifies that it can handle UTF-8 (i.e. when attaching, <code>-u<\/code> was given or <code>UTF-8<\/code> is present in LC_ALL, LC_CTYPE or LANG; the <code>utf8<\/code> window option is about what <em>tmux<\/em> should expect from the programs it runs, not what it can send to the attached client).<\/p>\n<p>Debian \u201csqueeze\u201d only includes <em>tmux<\/em> 1.3, so your <em>tmux<\/em> probably does not have the \u201cprefer UTF-8 line drawing\u201d feature (unless it pulls from a backports source).<\/p>\n<p>If you can not fix your terminal emulator nor upgrade to at least <em>tmux<\/em> 1.4, then you might be able to use <em>tmux<\/em>\u2019s <code>terminal-overrides<\/code> option to unset the ACS-related capabilities so that <em>tmux<\/em> will fall back to ASCII line drawing. In your <code>.tmux.conf<\/code> (on the Debian system):<\/p>\n<pre><code>set-option -ga terminal-overrides ',*:enacs@:smacs@:rmacs@:acsc@'\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Chris Johnsen There is some mismatch between your terminal emulator and the terminfo database entry being used by tmux (the one named by the TERM environment variable when you start\/attach to a tmux server). Per the VT100 User Guide, Table 3-9: Special Graphics Characters, when the \u201cspecial graphics set\u201d is selected, x is used to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8188","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=8188"}],"version-history":[{"count":1,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8188\/revisions"}],"predecessor-version":[{"id":8551,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/8188\/revisions\/8551"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=8188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=8188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=8188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}