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

ts-cli commnad line text often corrupt when moving the caret in a histroy command #519

Open
localvar opened this issue Mar 5, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@localvar
Copy link
Contributor

localvar commented Mar 5, 2024

Describe the bug(Bug 描述)

We often need to use/edit a history command, but in 'ts-cli', the command line text often corrupt when moving the caret.
I've never seen this from other applications, so I think it is a bug of 'ts-cli'.

To Reproduce(Bug 复现步骤)

  1. start ts-cli and execute some commands
  2. using the UP/DOWN keys to select a history command.
  3. using the LEFT/RIGHT keys to move the caret, note to keep the key pressed.
  4. the command line text corrupt like below, and user is forced to reenter the full command.
> insert cpu,host=server-01,region=south-cn disk=11,memory=12,network=13
ERR: {"error":"partial write: field type conflict: input field \"network\" on measurement \"cpu\" is type float, already exists as type integer dropped=1"}

> > > > > > > > > > > > > > > insert cpu,host=server-01,region=south-cn disk=11,memory=12,netwo?[D?[Drk=13
ERR: {"error":"partial write: field type conflict: input field \"memory\" on measurement \"cpu\" is type float, already exists as type integer dropped=0"}

> > > > insert cpu,host=server-01,region=south-cn disk=11,memory=12,netwo?[D?[Drk=13
ERR: {"error":"partial write: field type conflict: input field \"memory\" on measurement \"cpu\" is type float, already exists as type integer dropped=0"}

Expected behavior(期望结果)

No response

Screenshots(屏幕截图)

No response

Logs(完整的错误日志)

No response

Additional context(其他的一些补充内容)

No response

@localvar localvar added the bug Something isn't working label Mar 5, 2024
@localvar
Copy link
Contributor Author

localvar commented Mar 5, 2024

seems the issue only occur when using ts-cli in tmux,
but as tmux is such a widely used tool, I propose to check the root cause and make ts-cli compatible with tmux.

@xiangyu5632
Copy link
Member

seems the issue only occur when using ts-cli in tmux, but as tmux is such a widely used tool, I propose to check the root cause and make ts-cli compatible with tmux.

I'm asking if other developers are willing to fix this bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants