Skip to content

Commit

Permalink
Fix for viewving man pages in colour mode.
Browse files Browse the repository at this point in the history
Signed-off-by: Slava Zanko <[email protected]>
  • Loading branch information
egmontkob authored and slavaz committed Sep 4, 2014
1 parent d3e80d0 commit b11dd89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions misc/mc.menu.in
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ shell_patterns=0

=+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ & t r
1 Display the file with roff -man
nroff -man %f | less
%view{ascii,nroff} roff @MAN_FLAGS@ @MANDOC@ %f

2 Call the info hypertext browser
info
Expand Down Expand Up @@ -121,7 +121,7 @@ D Delete tagged files if a copy exists in the other directory.

m View manual page
MAN=%{Enter manual name}
%view man -P cat $MAN
%view{ascii,nroff} MANROFFOPT='@MAN_FLAGS@' MAN_KEEP_FORMATTING=1 man -P cat $MAN

= f \.gz$ & t r
+ ! t t
Expand Down
2 changes: 1 addition & 1 deletion misc/mc.menu.sr.in
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ D Обриши означене датотеке ако постоји к

m Погледај страницу упутства
MAN=%{Унесите назив упутства}
%view man -P cat $MAN
%view{ascii,nroff} MANROFFOPT='@MAN_FLAGS@' MAN_KEEP_FORMATTING=1 man -P cat $MAN

= f \.gz$ & t r
+ ! t t
Expand Down
5 changes: 1 addition & 4 deletions misc/mcedit.menu.in
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,7 @@ s Invoke `shell'

m view `man'
MAN=%{Enter name of man:}
TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/mcview.$MAN.XXXXXX` || exit 1
man -Pcat $MAN >$TMPFILE
mcview $TMPFILE
rm -f $TMPFILE
%view{ascii,nroff} MANROFFOPT='@MAN_FLAGS@' MAN_KEEP_FORMATTING=1 man -P cat $MAN

i Insert a out of command to cursor.
CMD=%{ Enter command: }
Expand Down

0 comments on commit b11dd89

Please sign in to comment.