Git Product home page Git Product logo

Comments (2)

gdamore avatar gdamore commented on July 20, 2024

If you want to only change the style without changing the text you can do that. I thought I had created a SetStyle API, but it looks for setting the style on a given cell, but it looks like I didn't for some reason.

Anyway, you can do GetContent() , and then change the Style return value, and pass the results back to SetContent(). You can just iterate over all the cells.

I'll see if I can provide some better convenience functions for this, because changing the style seems super useful.

(I can also see wanting to have an API to quickly change the style of a region. So I might look at that too.)

from tcell.

gdamore avatar gdamore commented on July 20, 2024

This is really a duplicate of #579 ... so I'm closing it as such.

Note that I do intend to implement this functionality, which is why I've made some other changes to reduce code duplicate in the repo today.

from tcell.

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.