about summary refs log tree commit diff
path: root/src/libextra/terminfo
AgeCommit message (Collapse)AuthorLines
2013-06-30Specialize to_str_common for floats/integers in strconvAlex Crichton-5/+11
This allows the integral paths to avoid allocations on the heap Closes #4424, #4423
2013-06-30Remove vec::[r]position_between, replaced by slices & iterators.Huon Wilson-4/+5
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-15/+12
2013-06-28librustc: Fix merge fallout and test cases.Patrick Walton-1/+2
2013-06-23vec: remove BaseIter implementationDaniel Micay-1/+1
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-1/+1
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-18Support printf formats in terminfo stringsKevin Ballard-31/+243
terminfo parameterized strings supports a limited subset of printf-style formatting operations, such as %#5.3d.
2013-06-16auto merge of #7160 : kballard/rust/terminfo-parm-i-fix, r=thestingerbors-3/+14
My latest terminfo work introduced a bug in the handling of %i, which was noticed by @huonw after the PR was already merged in. r? @thestinger
2013-06-16remove unused importsHuon Wilson-1/+0
2013-06-15Fix terminfo::param %i opKevin Ballard-3/+14
2013-06-15auto merge of #7133 : kballard/rust/terminfo-parm, r=thestingerbors-93/+316
Implement conditional support in terminfo, along with a few other related operators. Fix implementation of non-commutative arithmetic operators. Remove all known cases of task failure from `terminfo::parm::expand`, and change the method signature. Fix some other miscellaneous issues.
2013-06-14add IteratorUtil to the preludeDaniel Micay-2/+0
2013-06-14Fix line lengths in terminfoKevin Ballard-5/+10
2013-06-14Implement terminfo param conditionalsKevin Ballard-18/+129
Implement the %?, %t, %e, and %; operators. Also implement the %<, %=, %> operators, without which conditionals aren't very useful. Fix the order of parameters for the arithmetic operators. Implement the missing %^ operator.
2013-06-14Fix a bunch of failure cases in terminfoKevin Ballard-84/+161
Replace all potentially-failing operations with Err returns and add tests. Remove the Char parameter type; characters are represented as Numbers. Fix integer constants to work properly when there are multiple constants in the same capability string. Tweak loop to use iterators instead of indexing into cap.
2013-06-14Don't require &mut [Param] with terminfo::parm::expand()Kevin Ballard-7/+11
2013-06-14Tweak terminfo::parm::expand function signatureKevin Ballard-12/+23
Take a new struct Variables instead of two &mut [] vectors for static and dynamic variables.
2013-06-14Tweak new terminfo logical operator supportKevin Ballard-27/+12
2013-06-14Various terminfo parameterization changesCorey Richardson-4/+34
2013-06-12std: convert str::replace to a method.Huon Wilson-1/+1
2013-06-12std: remove substr & str::count_*, methodise char_len, implement slice_chars.Huon Wilson-3/+3
The confusing mixture of byte index and character count meant that every use of .substr was incorrect; replaced by slice_chars which only uses character indices. The old behaviour of `.substr(start, n)` can be emulated via `.slice_from(start).slice_chars(0, n)`.
2013-06-12std: unify the str -> [u8] functions as 3 methods: .as_bytes() and ↵Huon Wilson-2/+5
.as_bytes_with_null[_consume](). The first acts on &str and is not nul-terminated, the last two act on strings that are always null terminated (&'static str, ~str and @str).
2013-06-10terminfo: Support more terminfo directory structuresKevin Ballard-2/+13
OS X's terminfo uses the hex representation of the first character of the terminal name as the directory name. Ubuntu seems to use /lib/terminfo instead of /usr/share/terminfo, at least on the one machine I have access to.
2013-06-10std: replace str::each_split* with an iteratorHuon Wilson-6/+5
2013-06-04librustc: Disallow multiple patterns from appearing in a "let" declaration.Patrick Walton-1/+3
You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-06-03Ignore tests that cannot pass on buildbotCorey Richardson-0/+3
2013-06-01test fixesCorey Richardson-2/+2
2013-05-31Fix formatting for tidyCorey Richardson-6/+18
2013-05-31extra::term: better error handling and win32 compatCorey Richardson-27/+45
2013-05-31extra::term overhaulCorey Richardson-0/+626