Skip to content

[Bug] Terminal Colors not reset after application exists  #265

Open
@mattdesmarais

Description

Bug reports

Please file a bug report here.

Expected Behavior

When go-prompt application is terminated (ctrl^D), terminal color's need to be reset.

Current Behavior and Steps to Reproduce

After exiting go-prompt application (ex: simple-echo), the terminal & shell (mac terminal, iterm2, ubuntu bash) are in a state where you cannot see any characters being typed. Restarting the shell resolved the issue, until the next time you run the go-prompt application:

`vagrant@dev:~/host_user_homedir/go-workspace/src/go-prompt/_example/simple-echo$ go run main.go

users
Your input: users
vagrant@dev:~/host_user_homedir/go-workspace/src/go-prompt/_example/simple-echo$ ddddddd: command not found
`

go-prompt-terminal.mov

Context

Mac 11.7 with iTerm2 and terminal
Ubuntu 20.04 with default bash shell

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions