Comments (3)
It's funny, this crate's purpose has gone from "add ANSI codes to a string" to "maintain a vector of coloured text, then add ANSI codes to it at the end". Maybe I shouldn't have emphasised the ANSI part of it so much!
Anyway, this seems like a missing feature I can add. Just to be clear, you're talking about getting str
values out of an ANSIString
that hasn't been displayed yet, rather than stripping the codes from a String
?
from rust-ansi-term.
I'm not sure actually how important this feature is -- it seems like there is a need for something like NSAttributedString
1 but maybe this library isn't the place to do it.
Just to be clear, you're talking about getting str values out of an ANSIString that hasn't been displayed yet
Yes.
from rust-ansi-term.
I made it so you can Deref
an ANSIString
and get a &str
out.
from rust-ansi-term.
Related Issues (20)
- Cannot browse online documentation HOT 2
- Fails to compile on rustc 1.8.0 (db2939409 2016-04-11) HOT 5
- Build failure on OpenBSD with Rust nightly. HOT 1
- Crate on crates.io seems to be out-dated HOT 7
- recommendation for printing single chars HOT 1
- No-op non-windows enable_ansi_support function HOT 9
- enable_ansi_support(): error LNK2019: unresolved external symbol HOT 13
- Text wrap broken when using ansi_term in shell prompts HOT 1
- don't rely on GetLastError() to detect errors in enable_ansi_support HOT 2
- long_and_detailed test fails with latest Rust
- CrateFile2 is not usable on Windows 7 HOT 2
- rustc warning: trait objects without an explicit `dyn` are deprecated HOT 1
- Consider 1.0 versioning HOT 1
- Complex formatting settings are ignored HOT 3
- Request: hyperlink (HTML-like anchor) HOT 2
- allow arbitrary `Display`/`Debug` types in `paint`
- Add a helper to switch colors to their `intense` variant HOT 3
- NO_COLOR support HOT 2
- Maintenance status HOT 2
- support no_std ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-ansi-term.