version 1.2, 2020/04/20 13:38:48 |
version 1.3, 2020/04/20 15:37:32 |
|
|
return (s); |
return (s); |
} |
} |
|
|
void |
int |
tty_apply_features(struct tty_term *term, int feat) |
tty_apply_features(struct tty_term *term, int feat) |
{ |
{ |
const struct tty_feature *tf; |
const struct tty_feature *tf; |
|
|
u_int i; |
u_int i; |
|
|
if (feat == 0) |
if (feat == 0) |
return; |
return (0); |
log_debug("applying terminal features: %s", tty_get_features(feat)); |
log_debug("applying terminal features: %s", tty_get_features(feat)); |
|
|
for (i = 0; i < nitems(tty_features); i++) { |
for (i = 0; i < nitems(tty_features); i++) { |
|
|
} |
} |
term->flags |= tf->flags; |
term->flags |= tf->flags; |
} |
} |
|
if ((term->features | feat) == term->features) |
|
return (0); |
term->features |= feat; |
term->features |= feat; |
|
return (1); |
} |
} |