Skip to content

Prompt customization doesn't seem to be supported #619

@dj-256

Description

@dj-256

Environment details

  • OS: ubuntu (docker image)
  • OS version: 22.04
  • node-pty version: 1.0.0

Issue description

When using a custom prompt definition - in my case echo "PS1=\"\e[1;32m\u@tuto\e[0m:\e[1;34m\w\e[0m\$ \"" >> /root/.bashrc, node-pty does not seem to understand it and some weird things happen on the UI. The first line of the terminal is reduced and gets rewritten when it's exceeded. Stranger things happen when trying to erase text in the terminal. I'm using xterm.js with sockets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions