Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

control character display. #80

Open
adamyg opened this issue Jul 25, 2024 · 1 comment
Open

control character display. #80

adamyg opened this issue Jul 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@adamyg
Copy link
Owner

adamyg commented Jul 25, 2024

Alt-Q and other functions which may display control-characters msibehave at time, for example:

Alt-Q should insert a literal horizontal tab in the buffer. Instead it inserts "\x09" (including the double quotes).
It probably does the same for other characters, e.g. and so on.

Presentation of control-characters is dependent on whether or not a the display is Unicode font.

Shall test non-printable logic; tabs for example should be either Unicode-Tab or hex
Current cmap display control-characters as Unicode: 2400-2401F, yet these are not always available.

@adamyg adamyg added the enhancement New feature or request label Jul 25, 2024
@adamyg
Copy link
Owner Author

adamyg commented Sep 13, 2024

linux/bsd/solaris: fc-list and fc-query, examples:

 fc-list :charset=1f63f
 fc-query /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf

 General ability to set, yet no standard means to determine active font. cmdline options cleanest. 
 https://github.com/wez/wezterm/issues/4181
 vttests/query-fonts.pl, uses extend "CSI > Ps; Ps T" to query fontname in hex

win32: GetFontUnicodeRanges

minitty and others? https://github.com/mintty/mintty/wiki/CtrlSeqs

 Font glyph coverage enquiry
 Fonts vary widely in their Unicode coverage, i.e. they usually miss glyphs for many characters. 
 The following sequence can be    used to enquire about support for a specified list of characters.

    ^[]7771;?;char0;char1...^G

 Characters shall be specified with their decimal Unicode codepoint. Any number of characters can be given.
 Mintty replies with the same sequence, except that the question mark is replaced with an exclamation mark 
 and that codes for characters that the current font does not have a glyph for are omitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant