这是indexloc提供的服务,不要输入任何密码
Skip to content

Set virtual-monitor-size dynamically based on terminal size #31

@reynoldsme

Description

@reynoldsme

It would be great if term.everything could periodically (maybe every 500ms?) query the host terminal for its current dimensions in lines and columns and dynamically adjust the resolution of the virtual monitor so that the contained application window matches the size of the terminal.

Correctly determining the relationship between lines/columns and pixels may be difficult to do (I'm not sure), so perhaps the ability to manually set a scaling factor as a command line option should also be considered.

I propose at least one additional command line option:

  • --auto-scale-virtual-monitor - enables virtual-monitor-size to be adjusted dynamically with terminal resizing. Cannot be set at the same time as --virtual-monitor-size.

And maybe something like:

  • --scaling-factor-per-column <per column scaling factor> - scaling factor for number of horizontal pixels per column provided as a non-zero integer.

The implication of --scaling-factor-per-column being that pixels per line scales linearly with pixels per column.

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