Skip to content

Overwriting lines of the previous output #93

@gatunet

Description

@gatunet

Description:
When using the "pure" prompt layout, sometimes when the command finishes to run, the prompt is placed some lines up from where it should have been placed, causing the previous output to be replaced.

To Reproduce:
1.Just do a normal 'oh.my.zsh' installation
2.Install 'typewritten' using the 'oh my zsh' instructions
3.Change the prompt to 'pure' using the command: export TYPEWRITTEN_PROMPT_LAYOUT="pure"

I also changed the cursor to 'block' on all my machines, and didn't tested with the normal one.

Expected behavior:
Get the full output.

Screenshots
2020-11-02-023250_5846x1080_scrot_cropped

Desktop:

  • OS: Arch Linux, Ubuntu

Additional context:
I was able to reproduce the bug on a Ubuntu machine, and there when I tested 'typewritten' with the original prompt layout('singleline'), there was no problem. Also I didn't attached all the screenshots, because I tested on 2 sistems, with 3 different terminal emulators and three zsh themes and the result was the same as the one I gave, only on the typewritten ones with the 'pure' promp layout had the problem, on all the others there was no promblem. I have all of the screenshots and can upload if anyone wants.

Also tested on the other "multiline" ones and the problem happens on all of them. I only tested the other multiline prompts on my Arch machine by the way.

Also, here's my .zshrc:

##
## ZSH Config File
##

# Path to your oh-my-zsh installation.
export ZSH="/home/chomuske/.oh-my-zsh"

export TYPEWRITTEN_PROMPT_LAYOUT="pure"
export TYPEWRITTEN_CURSOR="block"
export TYPEWRITTEN_COLORS="symbol:#fb4934;symbol_error:#cc241d;error_code:#cc241d;git_branch:#83a598;current_directory:#83a598;arrow:#fbf1c7;user:#8ec07c;host_user_connector:#fbf1c7;host:fe8019;prompt:f9f5d7;virtual_env:#f1bd2f;git_rebasing:#d3869b;git_status_staged:#b16286;git_status_new:#fe8019;git_status_modified:#d65d0e;git_status_renamed:#ebdbb2;#git_status_deleted:#458588;git_status_unmerged:#98971a;git_status_diverged:#fabd2f;git_status_ahead:#689d6a;git_status_behind:#b8bb26;git_status_stash:#928374"
#export TYPEWRITTEN_COLOR_MAPPINGS="primary:red;secondary:#fb4934;accent:black;foreground:black"

ZSH_THEME="typewritten"
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# CASE_SENSITIVE="true"
# DISABLE_UPDATE_PROMPT="true"
# export UPDATE_ZSH_DAYS=13
# DISABLE_MAGIC_FUNCTIONS="true"
# DISABLE_LS_COLORS="true"
# DISABLE_AUTO_TITLE="true"
# ENABLE_CORRECTION="true"
# COMPLETION_WAITING_DOTS="true"
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# HIST_STAMPS="mm/dd/yyyy"
# ZSH_CUSTOM=/path/to/new-custom-folder

plugins=(
  git
)

source $ZSH/oh-my-zsh.sh

# User configuration

export PAGER="vimpager"

Also, sorry if I misspelled anything English is not my mother tongue.

Metadata

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