Unix questions - top leaves weird characters

This is Interesting: Free IT Magazines  
Home > Archive > Unix questions > January 2007 > top leaves weird characters





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author top leaves weird characters
dillogimp@yahoo.com

2006-12-27, 7:21 pm

hi
anyone know what are the characters for left by "top" like:
"^[[?1;2c1;2c"

what entris I nned to add to ~.inputrc?
thanks

Bill Marcum

2006-12-27, 7:21 pm

On 27 Dec 2006 13:19:01 -0800, dillogimp@yahoo.com
<dillogimp@yahoo.com> wrote:
>
>
> hi
> anyone know what are the characters for left by "top" like:
> "^[[?1;2c1;2c"
>

Those are the codes to position the cursor and set colors. Make sure
the TERM variable is set correctly, especially if you are running
remotely via ssh or telnet. If you are capturing top output in a file,
use "top -b".


--
Going to church does not make a person religious, nor does going to school
make a person educated, any more than going to a garage makes a person a car.
dillogimp@yahoo.com

2006-12-28, 1:34 am


Bill Marcum wrote:
> On 27 Dec 2006 13:19:01 -0800, dillogimp@yahoo.com
> <dillogimp@yahoo.com> wrote:
> Those are the codes to position the cursor and set colors. Make sure
> the TERM variable is set correctly, especially if you are running
> remotely via ssh or telnet. If you are capturing top output in a file,
> use "top -b".


I've just found a solution :
echo 'alias top="TERM=vt100 top"' >> ~/.bash_profile


>
>
> --
> Going to church does not make a person religious, nor does going to school
> make a person educated, any more than going to a garage makes a person a car.


Thomas Dickey

2007-01-06, 8:00 pm

Bill Marcum <marcumbill@bellsouth.net> wrote:
> On 27 Dec 2006 13:19:01 -0800, dillogimp@yahoo.com
> Those are the codes to position the cursor and set colors. Make sure


no (position ends with "H", and colors with "m").

It looks like the enquire string for a VT100.
(If we knew what terminal he's actually using, that would help).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com