about summary refs log tree commit diff
path: root/src/libextra/term.rs
AgeCommit message (Collapse)AuthorLines
2014-02-02Move term, terminfo out of extra.xales-251/+0
cc #8784
2014-01-08Remove the io::Decorator traitAlex Crichton-13/+3
This is just an unnecessary trait that no one's ever going to parameterize over and it's more useful to just define the methods directly on the types themselves. The implementors of this type almost always don't want inner_mut_ref() but they're forced to define it as well.
2014-01-08Renamed Option::map_default and mutate_default to map_or and mutate_or_setMarvin Löbel-2/+2
2014-01-03libextra: Remove unnecessary `@mut`sPatrick Walton-1/+2
2013-12-20Support ANSI colors in msys terminals. See #2807Jan Niklas Hasse-45/+13
2013-11-26librustuv: Remove all non-`proc` uses of `do` from `libextra` andPatrick Walton-2/+2
`librustuv`.
2013-11-24libextra: Remove @mut from term.Luqman Aden-16/+40
2013-11-11Move std::rt::io to std::ioAlex Crichton-1/+1
2013-10-24Remove even more of std::ioAlex Crichton-5/+5
Big fish fried here: extra::json most of the compiler extra::io_util removed extra::fileinput removed Fish left to fry extra::ebml
2013-10-23Removed unnecessary comments and white spaces as suggestedreedlepee-1/+0
2013-10-23Removed Unnecessary comments and white spaces #4386reedlepee-4/+0
2013-10-23Making fields in std and extra : private #4386reedlepee-2/+7
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-6/+6
Who doesn't like a massive renaming?
2013-10-09option: rewrite the API to use compositionDaniel Micay-2/+2
2013-09-30extra: Remove usage of fmt!Alex Crichton-6/+6
2013-08-18More spelling corrections.Huon Wilson-1/+1
2013-08-07Forbid `priv` where it has no effectAlex Crichton-2/+2
This is everywhere except struct fields and enum variants.
2013-08-07core: option.map_consume -> option.map_moveErick Tryzelaar-2/+2
2013-07-14term: Add new function .attr() to toggle terminal attributesKevin Ballard-5/+108
Also add .supports_attr() to test for attribute support without writing anything to output. Update .reset() to use sgr0 instead of op.
2013-07-14Give term.fg() and term.bg() a bool return valueKevin Ballard-4/+14
2013-07-08Correct merge failuresNiko Matsakis-2/+2
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-17/+17
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-3/+2
2013-06-29Smarter warning in extra::term::Terminal.reset()Kevin Ballard-2/+4
Don't spew a warn!() in reset() if num_colors is 0, because non-color-supporting terminals are legit. Use debug!() there instead. Continue spewing warn!() if we believe the terminal to support colors. Use a better warning when the `op` capability can't be found.
2013-06-27Teach extra::term::Terminal.reset() to handle missing opKevin Ballard-4/+7
Unlike fg() and bg(), we haven't already checked for the presence of "op" in the terminfo when we call reset(), so we need to handle the case where it's missing. Also update the warn!() lines to avoid double-quoting the output. Fixes #7431.
2013-06-26Refactor extra::term a bitKevin Ballard-47/+65
Move all the colors into a nested mod named color instead of prefixing with "color_". Define a new type color::Color, and make this a u16 instead of a u8 (to allow for easy comparisons against num_colors, which is a u16). Remove color_supported and replace it with num_colors. Teach fg() and bg() to "dim" bright colors down to the normal intensity if num_colors isn't high enough. Remove unnecessary copies, and fix a bug where a terminfo parse failure would try to use the wrong error and end up failing.
2013-06-25Deny common lints by default for lib{std,extra}Alex Crichton-7/+7
2013-06-14Fix line lengths in terminfoKevin Ballard-1/+2
2013-06-14Tweak terminfo::parm::expand function signatureKevin Ballard-4/+4
Take a new struct Variables instead of two &mut [] vectors for static and dynamic variables.
2013-06-04libsyntax: Remove `pub impl` from the languagePatrick Walton-8/+8
2013-05-31Fix formatting for tidyCorey Richardson-1/+2
2013-05-31extra::term: better error handling and win32 compatCorey Richardson-5/+44
2013-05-31Only output colors if colors are supported (removes burden from caller)Corey Richardson-5/+11
2013-05-31Use find_equiv in termCorey Richardson-4/+4
2013-05-31extra::term overhaulCorey Richardson-34/+39
2013-05-30libextra: Require documentation by defaultAlex Crichton-0/+2
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-22libstd: Rename libcore to libstd and libstd to libextra; update makefiles.Patrick Walton-0/+77
This only changes the directory names; it does not change the "real" metadata names.