wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
16.78k stars 752 forks source link

sometime , chinese input while cause <ffffffff> #4732

Closed i18nsite closed 8 months ago

i18nsite commented 8 months ago

What Operating System(s) are you seeing this problem on?

macOS

14.1.1 (23B81)

WezTerm version

wezterm 20230712-072601-f4abf8fd

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

image

sometime , chinese input while cause \<ffffffff>

To Reproduce

not always , sometime, input chinese after autocomplete command

Configuration

local wezterm = require("wezterm")
return {
  -- unicode_version = 9,
  -- allow_square_glyphs_to_overflow_width = "Never",
  -- treat_east_asian_ambiguous_width_as_wide = false,
  font = wezterm.font_with_fallback({
    {
      family = "FiraCode Nerd Font Mono",
      weight = "Bold",
    },
    {
      family = "Noto Sans CJK SC",
      weight = "Bold",
    },
  }),
  window_close_confirmation = "NeverPrompt",
  font_size = 16,
  selection_word_boundary = "{}[]()\"'=`,;: ❯│",
  hide_tab_bar_if_only_one_tab = true,
  hyperlink_rules = {
    -- Linkify things that look like URLs and the host has a TLD name.
    -- Compiled-in default. Used if you don't specify any hyperlink_rules.
    {
      regex = [[\b\w+://[&a-zA-Z!\$\d_\.\?\-/%\[\]:=+#]*]],
      format = "$0",
    },
    -- linkify email addresses
    -- Compiled-in default. Used if you don't specify any hyperlink_rules.
    {
      regex = [[\b\w+@[\w-]+(\.[\w-]+)+\b]],
      format = "mailto:$0",
    },
    -- file:// URI
    -- Compiled-in default. Used if you don't specify any hyperlink_rules.
    {
      regex = [[\bfile://\S*\b]],
      format = "$0",
    },
    -- Linkify things that look like URLs with numeric addresses as hosts.
    -- E.g. http://127.0.0.1:8000 for a local development server,
    -- or http://192.168.1.1 for the web interface of many routers.
    {
      regex = [[\b\w+://(?:[\d]{1,3}\.){3}[\d]{1,3}\S*\b]],
      format = "$0",
    },
    -- Make task numbers clickable
    -- The first matched regex group is captured in $1.
    {
      regex = [[\b[tT](\d+)\b]],
      format = "https://example.com/tasks/?t=$1",
    },
    -- Make username/project paths clickable. This implies paths like the following are for GitHub.
    -- ( "nvim-treesitter/nvim-treesitter" | wbthomason/packer.nvim | wez/wezterm | "wez/wezterm.git" )
    -- As long as a full URL hyperlink regex exists above this it should not match a full URL to
    -- GitHub or GitLab / BitBucket (i.e. https://gitlab.com/user/project.git is still a whole clickable URL)
    -- {
    --   regex = [[["]?([\w\d]{1}[-\w\d]+)(/){1}([-\w\d\.]+)["]?]],
    --   format = 'https://www.github.com/$1/$3',
    -- },
  },
}

Expected Behavior

No response

Logs

No response

Anything else?

No response

bew commented 8 months ago

Is your shell zsh? Whats the value of echo $LANG ?

wez commented 8 months ago

See also: https://wezfurlong.org/wezterm/faq.html#pasting-or-entering-unicode-in-zsh-looks-broken

github-actions[bot] commented 8 months ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] commented 7 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.