wez / wezterm

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

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

Open DeepBlueRobot opened 2 months ago

DeepBlueRobot commented 2 months ago

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

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

CORAAL commented 1 month ago

Hello,

The problem disappeared for me after activating :

use_ime = true

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

DeepBlueRobot commented 1 week ago

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.