Skip to content

Selection -m option delimiter #83

@maandree

Description

@maandree

Currently : delimits options in -m and -l and = delimits the option name and its associated value.
Problems we are facing with this:

  • : delimits the hostname and the display index in the display name of an X display. in Rewrite of adjustment methods and a some other stuff #61 -m randr and -m vidmode have been extended to support selecting display. Additionally, : long with [ and ] are required for IPv6 address which can be used instead of a hostname.
  • : is used in to separate values for red, green and blue and gamma settings. If redshift is extended to support using multiple adjustment methods concurrently it will be sensible to support using -m multiple times, and thus it will make since to specify the gamma correction for each monitor in -m.
  • , is used to delimit CRTC:s in XRandR: Allow multiple but not all CRTCs to be redshifted #81 while allows the user to specify multiple CRTC:s in one -m. This feature should also be added the screen option and the display option offered by Rewrite of adjustment methods and a some other stuff #61.
  • , is not too good of an alternative as it could be used instead of . in floating point values.
  • The are serve other character that are not too good options either because they have special meaning for shells and have to be escaped or put in qoutes. This includes symbols such as ; and &.

So the question is, how should options be delimited in -m and -l?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions