caller must set cond_shrinklvl (0..2) before calling us */
| 4841 | |
| 4842 | /* caller must set cond_shrinklvl (0..2) before calling us */ |
| 4843 | static void |
| 4844 | set_condition_length(void) |
| 4845 | { |
| 4846 | long mask; |
| 4847 | int c, lth = 0; |
| 4848 | |
| 4849 | if (tty_condition_bits) { |
| 4850 | for (c = 0; c < SIZE(conditions); ++c) { |
| 4851 | mask = conditions[c].mask; |
| 4852 | if ((tty_condition_bits & mask) == mask) |
| 4853 | lth += 1 + (int) strlen(conditions[c].text[cond_shrinklvl]); |
| 4854 | } |
| 4855 | } |
| 4856 | tty_status[NOW][BL_CONDITION].lth = lth; |
| 4857 | } |
| 4858 | |
| 4859 | static void |
| 4860 | shrink_enc(int lvl) |