roy
|
04f58b4824
|
Clean up some compile warnings.
|
2017-05-04 09:42:23 +00:00 |
|
christos
|
30fc0caf54
|
We have the max length; use snprintf.
|
2015-11-25 18:46:59 +00:00 |
|
roy
|
1535311f47
|
Whitespace
|
2013-06-07 13:16:18 +00:00 |
|
roy
|
40e555b80b
|
Provide a disabled implentation of tlparm and ti_tlparm for completeness.
This also improves the readability of _ti_tiparm.
|
2013-01-25 17:28:50 +00:00 |
|
roy
|
57755c0fa8
|
For platforms where we cannot fit a char * into a long, return NULL
and set errno to ENOTSUPP.
|
2013-01-25 12:30:05 +00:00 |
|
roy
|
a17592c001
|
Move the strings vs long analysis to a private function, but allow
tput(1) to use it so we can work with string parameters to capabilities.
|
2013-01-24 10:41:28 +00:00 |
|
roy
|
77e0da2e1e
|
As tparm accepts longs we should treat them as long during expansion.
Also, fix the ~ and ! logic.
|
2013-01-24 10:28:28 +00:00 |
|
roy
|
cf892bbeee
|
Fix %t logic and don't output any %; or %e parts.
Fixes PR lib/47490 thanks to Julien Oster
|
2013-01-23 13:06:18 +00:00 |
|
msaitoh
|
f1f8803538
|
Fix off by one error.
|
2012-11-30 10:14:18 +00:00 |
|
roy
|
b7ddb5da20
|
Ensure that we request a buffer big enough, although with the current
terminfo specification this should never happen.
Correctly return NULL when realloc(3) fails.
|
2012-06-02 19:10:33 +00:00 |
|
roy
|
2f9b6d37f2
|
Fix tparm.
As we now go via tiparm, store nums as int to conserve memory.
|
2011-10-03 20:13:48 +00:00 |
|
roy
|
39aae097d0
|
Correctly use ti_ instead of t_ for our extensions as per the man page.
Replace vtparm with tiparm.
tiparm is also non standard, but has been proposed at least.
|
2011-10-03 12:31:51 +00:00 |
|
roy
|
df504c6413
|
Do our best to process invalid terminfo strings instead of just
returning NULL.
|
2011-03-10 13:39:26 +00:00 |
|
roy
|
9d7b5f143f
|
Fix two other off-by-one errors when processing %P and %g commands.
|
2011-03-10 10:46:33 +00:00 |
|
roy
|
74cdc55234
|
Fix an off-by-one error when processing embedded values.
|
2011-03-10 09:45:32 +00:00 |
|
roy
|
215c5976aa
|
Our API just uses typedefs, so don't use the struct symbol which will avoid
any potential conflicts with userland.
|
2010-09-22 06:10:51 +00:00 |
|
roy
|
4ca00e00d8
|
Import my terminfo implementation.
This uses the ncurses terminal definitions.
OK: core@, jdc@
|
2010-02-03 15:16:32 +00:00 |
|