Kevin Ballard
6423548818
Fix a bunch of failure cases in terminfo
...
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-14 12:37:54 -07:00
Kevin Ballard
e990239a3a
Don't require &mut [Param] with terminfo::parm::expand()
2013-06-14 12:37:53 -07:00
Kevin Ballard
c9e234a1ae
Tweak terminfo::parm::expand function signature
...
Take a new struct Variables instead of two &mut [] vectors for static
and dynamic variables.
2013-06-14 12:37:53 -07:00
Kevin Ballard
9f9e505405
Tweak new terminfo logical operator support
2013-06-14 12:37:53 -07:00
Corey Richardson
821a962feb
Various terminfo parameterization changes
2013-06-14 12:37:53 -07:00
Huon Wilson
efc71a8bdb
std: unify the str -> [u8] functions as 3 methods: .as_bytes() and .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-12 12:21:04 +10:00
Corey Richardson
023861cbd1
test fixes
2013-06-01 13:24:58 -04:00
Corey Richardson
11f31b9684
Fix formatting for tidy
2013-05-31 20:02:56 -04:00
Corey Richardson
5311d59023
extra::term: better error handling and win32 compat
2013-05-31 20:02:49 -04:00
Corey Richardson
cf64324e19
extra::term overhaul
2013-05-31 20:02:49 -04:00