Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-b, --nocolor options not working usefully #3023

Open
mc-butler opened this issue Jun 20, 2013 · 6 comments
Open

-b, --nocolor options not working usefully #3023

mc-butler opened this issue Jun 20, 2013 · 6 comments
Labels
area: tty Interaction with the terminal, screen libraries prio: medium Has the potential to affect progress

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/3023
Reporter dnied (dnied@….it)

The '-b' and '--nocolor' mc options don't produce usable output because the selection bar is not visible. Mc should probably use inverse-screen for the selection bar when asked to go colorless.

Experimenting with $TERM, I found that mc actually draws an inverse-screen selection bar, though only if TERM=xtermm (but then the arrow keys don't work). Mc should draw it like that for any value of TERM, when '-b' or '--nocolor' are specified.

Verified on 'xterm -cm', with and without GNUscreen.

~> mc -V
GNU Midnight Commander 4.8.4
Built with GLib 2.32.4
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish, smbfs
Data types: char: 8; int: 32; long: 32; void *: 32; size_t: 32; off_t: 64;
~> xterm -version
X.Org 7.6.0(281)
~>
@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jun 20, 2013 at 17:07 UTC

  • Milestone Future Releases deleted
  • Component changed from mc-core to mc-tty
  • Status changed from new to closed
  • Resolution set to worksforme

Replying to dnied (#3023):

The '-b' and '--nocolor' mc options don't produce usable output because the selection bar is not visible.

Cannot confirm.

Mc should probably use inverse-screen for the selection bar when asked to go colorless.

Experimenting with $TERM, I found that mc actually draws an inverse-screen selection bar, though only if TERM=xtermm (but then the arrow keys don't work). Mc should draw it like that for any value of TERM

MC uses A_REVERSE independently of $TERM value.

@mc-butler
Copy link
Author

Changed by dnied (dnied@….it) on Jun 20, 2013 at 17:21 UTC (comment 1.2)

Cannot confirm.

Have you tried on a monochrome xterm with 'xterm -cm' ?

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jun 20, 2013 at 17:24 UTC (comment 2.3)

Replying to dnied:

Cannot confirm.

Have you tried on a monochrome xterm with 'xterm -cm' ?

And what? How mc should recognize than it runs under 'xterm -cm'?

@mc-butler
Copy link
Author

Changed by dnied (dnied@….it) on Jun 20, 2013 at 17:27 UTC (comment 3.4)

Replying to andrew_b:

Replying to dnied:

Cannot confirm.

Have you tried on a monochrome xterm with 'xterm -cm' ?

And what? How mc should recognize than it runs under 'xterm -cm'?

Like any other software that runs correctly on 'xterm -cm', maybe? See slrn, w3m, lynx, etc.

@mc-butler
Copy link
Author

Changed by dnied (dnied@….it) on Jun 20, 2013 at 18:04 UTC (comment 5)

  • Resolution worksforme deleted
  • Status changed from closed to reopened

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jun 18, 2015 at 18:30 UTC (comment 6)

  • Milestone set to Future Releases

@mc-butler mc-butler reopened this Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: tty Interaction with the terminal, screen libraries prio: medium Has the potential to affect progress
Development

No branches or pull requests

1 participant