ankitpokhrel / jira-cli

🔥 Feature-rich interactive Jira command line.
MIT License
3.9k stars 197 forks source link

Some commands show ANSI escape sequences #724

Open pstumpf opened 6 months ago

pstumpf commented 6 months ago

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 commented 4 months ago

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 commented 1 month ago

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