Skip to content

Problem with cursor position when suspending process to background #251

Closed
@dflaxx

Description

Hi,

I'm using oh-my-zsh (clean install, default config) with p10k as a theme. I'm experience the following problem: When I open a foreground process from the shell, say vim or htop, and then suspend that job using Ctrl+Z, the cursor is in the wrong position, shifted to the left, overlapping the path or the ">" symbol. Only terminating the background (fg, then Ctrl+C) process seems to reset everything to normal. Necessary fonts are installed and unset ZLE_RPROMPT_INDENT as suggested by the FAQ does not seem to solve the issue.

Steps to reproduce:

  1. Open a terminal.
  2. Call a foreground shell program like vim or htop.
  3. Suspend the program using Ctrl+Z.

I'm using Linux 4.19.69-1-MANJARO x86_64.

Here is my .zshrc:

export ZSH="/home/dflachs/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(git)
source $ZSH/oh-my-zsh.sh
[[ -f ~/.p10k.zsh ]] && source ~/.p10k.zsh

Any hints on how to solve that problem are appreciated!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions