about summary refs log tree commit diff
path: root/src/libextra/term.rs
AgeCommit message (Collapse)AuthorLines
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.