Giter Club home page Giter Club logo

Comments (10)

TimonPost avatar TimonPost commented on May 20, 2024

I do have those on my todo list, however, it is a bit difficult to realize.

from crossterm.

TimonPost avatar TimonPost commented on May 20, 2024

I have implemented it and will be soon usable.

preview

println!("{} Underlined {} No Underline", Attribute::Underlined, Attribute::NoUnderline);
println!("{}{} Red on Yellow", Colored::Fg(Color::Red), Colored::Bg(Color::Yellow));
println!("{}", "aa".green())

from crossterm.

TimonPost avatar TimonPost commented on May 20, 2024

Closing this will be soon available in crossterm_style 0.2

from crossterm.

prabirshrestha avatar prabirshrestha commented on May 20, 2024

Looking forward to it. Checked the source out and seems like I only see it for colors. Are there plans to support cursors and clear screen?

from crossterm.

TimonPost avatar TimonPost commented on May 20, 2024

Yes, that might come in the future.

from crossterm.

prabirshrestha avatar prabirshrestha commented on May 20, 2024

Great. Looking forward for those so I can migrate to crossterm instead of termion.

from crossterm.

prabirshrestha avatar prabirshrestha commented on May 20, 2024

Any plans on bringing cursor and clear api? Let me know if I should file a new issue to track it.

from crossterm.

TimonPost avatar TimonPost commented on May 20, 2024

I am not sure if that is something I want, I was thinking about it, but does it really make sense to make the cursor move with a write operation like: write!(stdout, "{}", Cursor::Goto(10,20)).

from crossterm.

prabirshrestha avatar prabirshrestha commented on May 20, 2024

My thought was that there would be applications that just uses those sequence so instead of me parsing and converting crossterm, it would automatically do it for me.

One thing I miss a lot on windows is tmux. Imagine if I could spawn a pty process and just directly pipe it to crossterm. It also allows one to easily create other emebedded terminal support such as in vim with crossterm very easily. Creating apps like these would be very easy if crossterm natively supported it. https://github.com/wez/wezterm.

Other interesting cases I can see is having OpenGL or directx for backends. So if I wanted to created a gvim I can easily use the gui backends instead of terminal. As a dev consuming crossterm I would be very happy because all the hard work is handled by crossterm.

from crossterm.

TimonPost avatar TimonPost commented on May 20, 2024

Crossterm supports a similar feature with the command API since version 0.10

from crossterm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.