a-kenji / tui-term

A pseudoterminal widget library for ratatui
MIT License
119 stars 7 forks source link

[Question] How to remove first blank line and cursor? #113

Closed kyu08 closed 8 months ago

kyu08 commented 10 months ago

Premise

Question

Implementation

How to reproduce

  1. gh repo clone kyu08/fzf-make
  2. cd fzf-make
  3. make build-release
  4. ./target/release/fzf-make
a-kenji commented 10 months ago

Thank you for reaching out!

First blank line: Is that still an issue? I can't seem to reproduce it.

You can set the cursor through:

let pseudo_term = PseudoTerminal::new(screen).cursor(tui_term::widget::Cursor::default().symbol(""));
kyu08 commented 10 months ago

You can set the cursor through:

This works completely! Thanks!

First blank line: Is that still an issue? I can't seem to reproduce it.

For some reason, in my environment it reproduces only when I ran generated binary.

Also I noticed this did not not occur on linux.(I ran linux docker container on macOS)

I would like to continue to investigating this behavior as it may be unique to macOS.

a-kenji commented 8 months ago

Implemented in #132