Replies: 5 comments
-
Here are some proposed tenets for Terminal.Gui related to Unicode support: Terminal.Gui Unicode Handling Tenets (Unless you know better ones):
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Linux Terminal issues/discussions:
|
Beta Was this translation helpful? Give feedback.
-
What other libraires are thinking:
|
Beta Was this translation helpful? Give feedback.
-
Terminal.Gui Text Handling Requirements
|
Beta Was this translation helpful? Give feedback.
-
Unicode and TUI is a very interesting topic. Terminal.Gui apps want to use a broad range of Unicode features. This thread is a master discussion thread for Terminal.Gui unicode capabilities. Ideas, issues, designs, etc...
We're talking about features such as:
Terminal.Gui v2 has much better support for these things than v1, but there is still a long way to go. Related issues:
Specs
Relevant Terms/Definitions
String length- https://hsivonen.fi/string-length/ - "String length is about as meaningful a measurement as string height”
Column width
Rendering v Editing - The requirements for editing vs. just displaying text are different. For example, if a user wants to enter and edit a grapheme consisting of
![image](https://private-user-images.githubusercontent.com/585482/278875596-8d01f00c-3d78-4b19-83cb-94a8b58c97fc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMDY5NDEsIm5iZiI6MTcyMTMwNjY0MSwicGF0aCI6Ii81ODU0ODIvMjc4ODc1NTk2LThkMDFmMDBjLTNkNzgtNGIxOS04M2NiLTk0YThiNThjOTdmYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxOFQxMjQ0MDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1hNmMxZDU1OWUwOTU2N2M3ZjU1MWJhYmVjNGZmOGRmNjk3OWVkYjU1YTIyYjFiMzUzYWQ2NDMzNmUxZWQxMmNjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.lre5-zmd-fF7LGGR8MSxceaAQpnnLsneIF0XqdlTN9Q)
a
and two accute accents (/u0301/u0301
) that is 3 "keystrokes". But what is displayed is a single-width glyph:Unicode segmentation -
Combining Marks -
Grapheme Cluster - one user-perceived character
Emoji -
'COOKED_READ` in Windows Terminal - The input mode that CMD and legacy versions of PowerShell (without PSReadline) use. It's the mode there the console host handles producing a single line of input for the client application and only returns it when the user mashes Enter.
Beta Was this translation helpful? Give feedback.
All reactions