mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
msg: allow to truncate the message to terminal width
This commit is contained in:
@@ -2926,6 +2926,12 @@ static int mp_property_osd_ass(void *ctx, struct m_property *prop,
|
||||
return m_property_read_sub(props, action, arg);
|
||||
}
|
||||
|
||||
static int mp_property_term_clip(void *ctx, struct m_property *prop,
|
||||
int action, void *arg)
|
||||
{
|
||||
return m_property_strdup_ro(action, arg, TERM_MSG_0);
|
||||
}
|
||||
|
||||
static int mp_property_term_size(void *ctx, struct m_property *prop,
|
||||
int action, void *arg)
|
||||
{
|
||||
@@ -4159,6 +4165,8 @@ static const struct m_property mp_properties_base[] = {
|
||||
{"osd-sym-cc", mp_property_osd_sym},
|
||||
{"osd-ass-cc", mp_property_osd_ass},
|
||||
|
||||
{"term-clip-cc", mp_property_term_clip},
|
||||
|
||||
{"mouse-pos", mp_property_mouse_pos},
|
||||
{"touch-pos", mp_property_touch_pos},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user