wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

remote vi will replace some word with 6

Open damonchen opened this issue 3 years ago • 1 comments

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

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

wezterm 20220624-141144-bd1b7c5d

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

No, and I'll explain why below

Describe the bug

When I ssh to the remote server, then using vi to open the text, It will replace some word in vi, which does not exists in iterm2.

eg, I open quickjs.c in vi, then will be the following code:

6*
 * QuickJS Javascript Engine
 *
 * Copyright (c) 2017-2021 Fabrice Bellard
 * Copyright (c) 2017-2021 Charlie Gordon
 *

/ is replaced to the 6

To Reproduce

No response

Configuration

local wezterm = require 'wezterm';

local  leader = {key='a', mods='CMD', timeout_milliseconds=1000}
return {
  font_dirs = {
	"/Users/tianqi/Library/Fonts",
  },
  line_height = 1.1, 
  -- font = wezterm.fofft("mononoki Nerd Font Mono", {weight=450, size=14}),
  font = wezterm.font("Recursive Mono Linear Static", {weight=500, size=12}),
  -- font = wezterm.font("Input Mono", {weight=500}),
  -- font = wezterm.font("JetBrains Mono", {weight=500, size=14}),
  -- font = wezterm.font("JetBrains Mono", {weight="Bold", }),
  -- font = wezterm.font("Go Mono for Powerline", {weight="Bold", }),
  -- font = wezterm.font("Fantasque Sans Mono"),
  font = wezterm.font("Inconsolata"),
  font = wezterm.font_with_fallback({
		  {family="Hermit", scale=1.0},
		  {family="LXGW WenKai Mono", scale=1.1},
	  }),
  font_size = 13.0,
  color_scheme = "Builtin Solarized Light",
  color_scheme = "Ciapre",
  color_scheme = "Rapture",
  color_scheme = "Rippedcasts",
  color_scheme = "Rouge 2",
  color_scheme = "Royal",
  color_scheme = "rebecca",
  color_scheme = "Zenburn",
  color_scheme = "WildCherry",
  color_scheme = "Wryan",
  color_scheme = "Desert",
  color_scheme = "Solarized",
  color_scheme = "Batman",
  color_scheme = "Coffee",
 -- color_scheme = "Pastel",
  -- color_scheme = "gruvbox-dark",
  -- color_scheme="3024 Night",
  -- color_scheme="Adventure",
  -- color_scheme="3024 Day",
  scrollback_lines=35000,
  exit_behavior="Close",
  leader = leader,
  keys = {
		{ key = "_", mods = "LEADER|SHIFT", leader=leader, action=wezterm.action{SplitVertical={domain="CurrentPaneDomain"}} },
        { key = "|", mods = "LEADER|SHIFT", action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}} },
        { key = "z", mods = "LEADER", action="TogglePaneZoomState" },
        { key = "c", mods = "LEADER", action=wezterm.action{SpawnTab="CurrentPaneDomain"}},
        { key = "h", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Left"}},
        { key = "j", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Down"}},
        { key = "k", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Up"}},
        { key = "l", mods = "LEADER", action=wezterm.action{ActivatePaneDirection="Right"}},
        { key = "H", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Left", 5}}},
        { key = "J", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Down", 5}}},
        { key = "K", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Up", 5}}},
        { key = "L", mods = "LEADER|SHIFT", action=wezterm.action{AdjustPaneSize={"Right", 5}}},
        -- { key = "1", mods = "LEADER", action=wezterm.action{ActivateTab=0}},
        -- { key = "2", mods = "LEADER", action=wezterm.action{ActivateTab=1}},
        -- { key = "3", mods = "LEADER", action=wezterm.action{ActivateTab=2}},
        -- { key = "4", mods = "LEADER", action=wezterm.action{ActivateTab=3}},
        -- { key = "5", mods = "LEADER", action=wezterm.action{ActivateTab=4}},
        -- { key = "6", mods = "LEADER", action=wezterm.action{ActivateTab=5}},
        -- { key = "13", mods = "LEADER", action=wezterm.action{ActivateTab=6}},
        -- { key = "8", mods = "LEADER", action=wezterm.action{ActivateTab=7}},
        -- { key = "9", mods = "LEADER", action=wezterm.action{ActivateTab=8}},
        -- { key = "&", mods = "LEADER|SHIFT", action="CloseCurrentTab"},
		-- {key='a', mod='LEADER', leader=leader, action=wezterm.action{SendString='\x01'}},

	  -- {key='-', mods='LEADER', action=wezterm.action{SplitVertial={domain='CurrentPaneDomain'}}},
	  -- {key='\\', mods='LEADER', action=wezterm.action{SplitHorizontal={domain='CurrentPaneDomain'}}},
	  -- {key='c', mods='LEADER', action=wezterm.action{SpawnTab='CurrentPaneDomain'}},
	  -- {key = "z", mods = "LEADER", action="TogglePaneZoomState" },
	  -- {key='m', mod='CMD', action='DisableDefaultAssignment'}
	  -- Send "CTRL-A" to the terminal when pressing CTRL-A, CTRL-A

  },
  disable_default_key_binds=true,
  -- dpi=144.0,
  -- launch_menu = {
  --     args={'left'},
  -- },
  hyperlink_rules = {
    -- Linkify things that look like URLs
    -- This is actually the default if you don't specify any hyperlink_rules
    {
      regex = "\\b\\w+://(?:[\\w.-]+)\\.[a-z]{2,15}\\S*\\b",
      format = "$0",
    },

    -- linkify email addresses
    {
      regex = "\\b\\w+@[\\w-]+(\\.[\\w-]+)+\\b",
      format = "mailto:$0",
    },

    -- file:// URI
    {
      regex = "\\bfile://\\S*\\b",
      format = "$0",
    },

    -- Make task numbers clickable
    --[[
    {
      regex = "\\b[tT](\\d+)\\b"
      format = "https://example.com/tasks/?t=$1"
    }
    ]]
  }
}

Expected Behavior

No response

Logs

No response

Anything else?

No response

damonchen avatar Aug 02 '22 00:08 damonchen

Please capture a terminal recording:

  • Launch wezterm. If possible, please use 80x24 for the terminal dimensions as it helps to keep things smaller and easier to manage.
  • Inside that terminal run wezterm record to start a recording session.
  • Run through your reproduction steps; eg: ssh to remote host, then open that file in vi, then exit vi and the ssh session.
  • Then type exit
  • You should see a message like:
*** Finished recording to /var/tmp/wezterm-recording-sF6B3u.cast.txt
  • Attach the file that it produced to this issue.

The file is an asciicast (compatible with https://asciinema.org/) and can also be replayed using wezterm replay.

The terminal recording allows me to replicate what is being sent to the terminal without requiring me to install the same applications as you and replicate your configuration for everything.

wez avatar Aug 02 '22 01:08 wez

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] avatar Aug 16 '22 01:08 github-actions[bot]

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.

github-actions[bot] avatar Feb 03 '23 20:02 github-actions[bot]