unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Akib Azmain Turja <akib@disroot.org>
To: emacs-devel@gnu.org
Subject: How to change window divider in text terminal?
Date: Thu, 28 Jul 2022 17:14:46 +0600	[thread overview]
Message-ID: <8735el8p5l.fsf@disroot.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2072 bytes --]


From (elisp) Display Tables:

--8<---------------cut here---------------start------------->8---
   The ordinary elements of the display table are indexed by character
codes; the element at index C says how to display the character code C.
The value should be ‘nil’ (which means to display the character C
according to the usual display conventions; *note Usual Display::), or a
vector of glyph codes (which means to display the character C as those
glyphs; *note Glyphs::).

[...]

   The display table also has six “extra slots” which serve special
purposes.  Here is a table of their meanings; ‘nil’ in any slot means to
use the default for that slot, as stated below.

[...]

5
     The glyph used to draw the border between side-by-side windows (the
     default is ‘|’).  *Note Splitting Windows::.  This currently has
     effect only on text terminals; on graphical terminals, if vertical
     scroll bars are supported and in use, a scroll bar separates the
     two windows, and if there are no vertical scroll bars and no
     dividers (*note Window Dividers::), Emacs uses a thin line to
     indicate the border.
--8<---------------cut here---------------end--------------->8---

But none of the following work for me:

--8<---------------cut here---------------start------------->8---
(set-display-table-slot standard-display-table 5 ?|)
(set-display-table-slot standard-display-table 5 (make-glyph-code ?|))
(set-display-table-slot standard-display-table 'vertical-border ?|)
(set-display-table-slot standard-display-table 'vertical-border
                        (make-glyph-code ?|))
--8<---------------cut here---------------end--------------->8---

And I'm pretty much sure that this happens because the character '|' is
hardcoded in "build_frame_matrix_from_leaf_window" in "src/dispnew.c".

-- 
Akib Azmain Turja

Find me on Mastodon at @akib@hostux.social.

This message is signed by me with my GnuPG key.  It's fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

             reply	other threads:[~2022-07-28 11:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-28 11:14 Akib Azmain Turja [this message]
2022-07-28 11:55 ` How to change window divider in text terminal? Andreas Schwab
2022-07-28 13:27   ` Akib Azmain Turja

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8735el8p5l.fsf@disroot.org \
    --to=akib@disroot.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).