Bug 484840

Summary: Vim starts in replace mode
Product: [Applications] konsole Reporter: mpeter.68m0y
Component: emulationAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description mpeter.68m0y 2024-03-31 20:55:14 UTC
Konsole version: 24.04.70
Source: gitlab CI release with name 'konsole-master-2985-windows-cl-msvc2022-x86_64'

SUMMARY
When opening Vim (even with the `--clean` option) in a WSL shell, it will start up in replace mode, as it shows as usual in the bottom left corner.

The issue does not happen when using the Windows Terminal terminal emulator.

STEPS TO REPRODUCE
1. Start a WSL shell
2. Run the `vim`  command (with a file or without, does not matter)

OBSERVED RESULT
Vim opens in replace mode

EXPECTED RESULT
Vim should open in command mode

SOFTWARE/OS VERSIONS
Windows: 10
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2

ADDITIONAL INFORMATION
In a local WSL shell it is always happening.
If I use the local WSL shell to connect to a linux system through ssh, it happens only sometimes.

It seems in the past Windows Terminal also had this issue. The information below might be useful:
- https://vi.stackexchange.com/questions/27391/why-it-enters-replace-mode-automatically-even-with-clean-flag-in-wsl
- https://github.com/microsoft/terminal/issues/1637
- https://github.com/vim/vim/issues/6951
- https://github.com/vim/vim/issues/6365
- https://superuser.com/questions/1284561/why-is-vim-starting-in-replace-mode