wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Cannot get correct numbers in emacs(terminal) when using programmer's Dvorak layout

Open DeepBlueRobot opened this issue 1 year ago • 1 comments

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

Linux X11

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

kwin

WezTerm version

20240915-153243-2d0c5cdd

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

  • Cannot get correct numbers in emacs(terminal) when using programmer's Dvorak layout
  • emacs(terminal) in kitty and Konsole is ok.
  • other editors in wezterm is ok. e.g. vim, nvim, nano, micro

gnu emacs version: 29.4

To Reproduce

  1. launch wezterm
  2. run emacs -nw -q
  3. type 2 (equals Shift + 8 on qwerty layout)
  4. get bad result 0~

Configuration

no config

Expected Behavior

No response

Logs

15:58:30.828 INFO wezterm_gui::termwindow::keyevent > key_event RawKeyEvent { key: Physical(LeftShift), modifiers: NONE, leds: (empty), phys_code: Some(LeftShift), raw_code: 50, repeat_count: 1, key_is_down: true, handled: Handled(false) } 15:58:30.828 INFO wezterm_gui::termwindow::keyevent > key_event KeyEvent { key: LeftShift, modifiers: NONE, leds: (empty), repeat_count: 1, key_is_down: true, raw: Some(RawKeyEvent { key: Physical(LeftShift), modifiers: NONE, leds: (empty), phys_code: Some(LeftShift), raw_code: 50, repeat_count: 1, key_is_down: true, handled: Handled(false) }) } 15:58:30.828 INFO wezterm_gui::termwindow::keyevent > send to pane DOWN key=LeftShift mods=NONE 15:58:30.908 INFO wezterm_gui::termwindow::keyevent > key_event RawKeyEvent { key: Physical(K8), modifiers: SHIFT, leds: (empty), phys_code: Some(K8), raw_code: 17, repeat_count: 1, key_is_down: true, handled: Handled(false) } 15:58:30.908 INFO wezterm_gui::termwindow::keyevent > key_event KeyEvent { key: Char('2'), modifiers: SHIFT, leds: (empty), repeat_count: 1, key_is_down: true, raw: Some(RawKeyEvent { key: Physical(K8), modifiers: SHIFT, leds: (empty), phys_code: Some(K8), raw_code: 17, repeat_count: 1, key_is_down: true, handled: Handled(false) }) } 15:58:30.908 INFO wezterm_gui::termwindow::keyevent > send to pane DOWN key=Char('2') mods=SHIFT 15:58:30.908 INFO wezterm_term::terminalstate::keyboard > key_down: sending "\u{1b}[27;2;50~", Char('2') SHIFT 15:58:30.981 INFO wezterm_gui::termwindow::keyevent > key_event KeyEvent { key: Char('2'), modifiers: SHIFT, leds: (empty), repeat_count: 1, key_is_down: false, raw: Some(RawKeyEvent { key: Physical(K8), modifiers: SHIFT, leds: (empty), phys_code: Some(K8), raw_code: 17, repeat_count: 1, key_is_down: false, handled: Handled(false) }) } 15:58:30.981 INFO wezterm_gui::termwindow::keyevent > send to pane UP key=Char('2') mods=SHIFT 15:58:31.072 INFO wezterm_gui::termwindow::keyevent > key_event KeyEvent { key: LeftShift, modifiers: SHIFT, leds: (empty), repeat_count: 1, key_is_down: false, raw: Some(RawKeyEvent { key: Physical(LeftShift), modifiers: SHIFT, leds: (empty), phys_code: Some(LeftShift), raw_code: 50, repeat_count: 1, key_is_down: false, handled: Handled(false) }) } 15:58:31.072 INFO wezterm_gui::termwindow::keyevent > send to pane UP key=LeftShift mods=SHIFT

Anything else?

No response

DeepBlueRobot avatar Sep 17 '24 20:09 DeepBlueRobot

Hello,

The problem disappeared for me after activating :

use_ime = true

I use macos, wezterm, emacs (provided via nixpkgs unstable)

CORAAL avatar Oct 09 '24 10:10 CORAAL

Hello,

The problem disappeared for me after activating :

use_ime = true

I use macos, wezterm, emacs (provided via nixpkgs unstable)

Thank you. But it's not work for me.

DeepBlueRobot avatar Nov 14 '24 09:11 DeepBlueRobot

Hello,

same problem here with fr_oss layout.

jschaeff avatar Mar 09 '25 14:03 jschaeff