top leaves weird characters
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix questions > top leaves weird characters




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    top leaves weird characters  
dillogimp@yahoo.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-28-06 12:21 AM

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

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






[ Post a follow-up to this message ]



    Re: top leaves weird characters  
Bill Marcum


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-28-06 12:21 AM

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
.





[ Post a follow-up to this message ]



    Re: top leaves weird characters  
dillogimp@yahoo.com


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-28-06 06: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

[vbcol=seagreen]
>
>
> --
> 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.[/vbc
ol]






[ Post a follow-up to this message ]



    Re: top leaves weird characters  
Thomas Dickey


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-07-07 01:00 AM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:44 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register