[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#3102: top has problems when not on console



rdm@tad.micro.umn.edu said:

> When I come in with a vt100, top puts notations like <3> or <5> at the
> end of each line.

It does the same for me if I set TERM=vt100 on the linux console.
Are you setting TERM=vt100 on a linux console, or connecting to
a linux system with a real vt100 and setting TERM=vt100?

Running top(1) under script(1), I see that the <3> is part of a
"^[[K$<3>" sequence.  According to `infocmp vt100`, that's the el
capability.  The el capability for a vt100 is clear-to-end-of-line
per terminfo(5) for a vt100, and using this capability at the end of
lines seems proper for top(1).

`infocmp linux` says that el=\EK, vs. el=\E[K$<3> for 'infocmp vt100.`
I don't have a vt100 manual handy to check what it says that the
el capability for TERM=vt100 should be set to.  If it's not
"^[[K$<3>", then this is a ncurses-base bug.  if it is, then
it looks like this is not a bug.

With `infocmp vt100 | grep '<5'`, I see:
        clear=\E[H\E[J$<50>, cr=^M, csr=\E[%i%p1%d;%p2%dr,
        cup=\E[%i%p1%d;%p2%dH$<5>, cuu=\E[%p1%dA,
        cuu1=\E[A$<2>, ed=\E[J$<50>, el=\E[K$<3>,
        rc=\E8, rev=\E[7m$<2>, ri=\EM$<5>, rmacs=^O,
Without checking in detail, I imagine that this is where the '<5>'
notation you're seeing is coming from, and that the explanation is
similar to that for '<3>'.


Reply to: