Skip to content

less -X has potentially unintended side effects #2

Description

@ketsuban

The -X flag on less does have the effect of allowing through colour codes from ls --color=always, but it also disables pager functionality. This can potentially result in odd behaviour - for example, urxvt will not treat less as a secondary screen and thus will ignore the secondaryScreen and secondaryScroll (and, with a patch, secondaryWheel) settings.

The version of less which comes with Arch has a -R flag which allows through colour codes, and is thus the preferred option for your ll macro.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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