unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How to change window divider in text terminal?
@ 2022-07-28 11:14 Akib Azmain Turja
  2022-07-28 11:55 ` Andreas Schwab
  0 siblings, 1 reply; 3+ messages in thread
From: Akib Azmain Turja @ 2022-07-28 11:14 UTC (permalink / raw)
  To: emacs-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-28 13:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 11:14 How to change window divider in text terminal? Akib Azmain Turja
2022-07-28 11:55 ` Andreas Schwab
2022-07-28 13:27   ` Akib Azmain Turja

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).