Ticket #3023 (reopened defect)

Opened 12 years ago

Last modified 10 years ago

-b, --nocolor options not working usefully

Reported by: dnied Owned by:
Priority: major Milestone: Future Releases
Component: mc-tty Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

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)
~>

Change History

comment:1 in reply to: ↑ description ; follow-up: ↓ 2 Changed 12 years ago by andrew_b

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

Replying to dnied:

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.

comment:2 in reply to: ↑ 1 ; follow-up: ↓ 3 Changed 12 years ago by dnied

Cannot confirm.

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

comment:3 in reply to: ↑ 2 ; follow-up: ↓ 4 Changed 12 years ago by 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'?

comment:4 in reply to: ↑ 3 Changed 12 years ago by dnied

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.

comment:5 Changed 12 years ago by dnied

  • Status changed from closed to reopened
  • Resolution worksforme deleted

comment:6 Changed 10 years ago by andrew_b

  • Milestone set to Future Releases
Note: See TracTickets for help on using tickets.