Skip to content

Right prompt is pushed to the bottom of the terminal #1472

@dyuri

Description

@dyuri

When I'm trying to use right prompt, it appears at the bottom of the screen. When the input is submitted, the right prompt is moved back.

image

Example code (from the prompt toolkit website):

from prompt_toolkit import prompt
from prompt_toolkit.styles import Style

example_style = Style.from_dict({
    'rprompt': 'bg:#ff0066 #ffffff',
})

def get_rprompt():
    return '<rprompt>'

answer = prompt('> ', rprompt=get_rprompt, style=example_style)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions