You are not logged in.

#1 2009-02-06 09:32:37

adamlau
Member
Registered: 2009-01-30
Posts: 418

{SOLVED] Terminal (xterm, xfterm4) Exports Symbol Characters?

locale -a shows:

C
POSIX
en_US
en_US.iso88591
en_US.utf8

When performing e.g. 'man mount > ~/Desktop/mount' the mount file contains square, illegible symbols. How to resolve?

Last edited by adamlau (2009-02-06 13:04:17)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

#2 2009-02-06 13:00:05

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: {SOLVED] Terminal (xterm, xfterm4) Exports Symbol Characters?

Those are probably just escape sequences that have leaked into the output.

From the man manpage:

To get a plain text version of  a  man  page,  without  backspaces  and
       underscores, try
              
         # man foo | col -b > foo.mantxt

Documentation ftw. big_smile

-dav7


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#3 2009-02-06 13:04:51

adamlau
Member
Registered: 2009-01-30
Posts: 418

Re: {SOLVED] Terminal (xterm, xfterm4) Exports Symbol Characters?

So man man was the answer smile . Thanks! This quick alias function should do the trick:

alias mn='manout'
manout () {
   man $1 | col -b > /tmp/$1 && mousepad /tmp/$1 & exit
}

Last edited by adamlau (2009-02-07 00:40:52)


Arch Linux + sway
Debian Testing + GNOME/sway
NetBSD 64-bit + Xfce

Offline

Board footer

Powered by FluxBB