Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some commands show ANSI escape sequences #724

Open
pstumpf opened this issue Mar 21, 2024 · 2 comments
Open

Some commands show ANSI escape sequences #724

pstumpf opened this issue Mar 21, 2024 · 2 comments

Comments

@pstumpf
Copy link

pstumpf commented Mar 21, 2024

When executing certain commands, at least jira init, jira issue create and jira epic create, raw escape sequences are visible.

E.g.

 $ jira init
? Installation type:  [Use arrows to move, type to filter, ? for more help]
> Cloud
  Local

Arrow up/down is printed as ^[[A and ^[[B, then [[24;80R is printed after pressing return.

It seems like something is putting the terminal into raw mode.

This happens with both @latest and

 $ jira version
(Version="v1.5.1", GitCommit="", CommitDate="", GoVersion="go1.22.1", Compiler="gc", Platform="openbsd/amd64")

on OpenBSD (-current), both in an xterm and in tmux.

Otherwise, the commands work as expected.

@pstumpf
Copy link
Author

pstumpf commented May 20, 2024

The issue here is that jira-cli uses the unmaintained survey library (https://github.com/AlecAivazis/survey/). It seems like bubbletea is the recommended replacement.

There is an analogous bug report for gitlab-cli, to be found here: https://gitlab.com/gitlab-org/cli/-/issues/7351

@neezer
Copy link

neezer commented Aug 14, 2024

I'm having the same issue, also on OpenBSD (-current).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants