git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* WARNING: terminal is not fully functional
@ 2022-01-27  6:00 Jeffrey Walton
  2022-01-27  6:15 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Jeffrey Walton @ 2022-01-27  6:00 UTC (permalink / raw
  To: Git List

Hi Everyone,

I needed to install Git on Ubuntu 8. Git seems to work Ok for most
task, but this is unusual:

    $ git diff
    WARNING: terminal is not fully functional
    -  (press RETURN)

Here's the terminal:

    $ echo $TERM
    xterm-256color

It seems like loss of colors on an old platform is not that important.
However, the message being printed creates an actionable item that
needs attention. I think no message would be a better option.

Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: WARNING: terminal is not fully functional
  2022-01-27  6:00 WARNING: terminal is not fully functional Jeffrey Walton
@ 2022-01-27  6:15 ` Junio C Hamano
  2022-01-27  7:05   ` Jeffrey Walton
  0 siblings, 1 reply; 4+ messages in thread
From: Junio C Hamano @ 2022-01-27  6:15 UTC (permalink / raw
  To: Jeffrey Walton; +Cc: Git List

Jeffrey Walton <noloader@gmail.com> writes:

> I needed to install Git on Ubuntu 8. Git seems to work Ok for most
> task, but this is unusual:
>
>     $ git diff
>     WARNING: terminal is not fully functional
>     -  (press RETURN)
>
> Here's the terminal:
>
>     $ echo $TERM
>     xterm-256color

A short answer.  You are using "less" as the pager, but it is not
working with your terminal.  Likely reason is perhaps you are
missing terminfo/termcap database entry for that terminal.

I have working xterm-256color, so

	$ TERM=xterm-256color less README.md

works as expected, but using a (bogus) terminal that no system would
have ever heard of, e.g.

	$ TERM=no-such-terminal-exists less README.md

results in exactly the symptom you are observing.

Something to try quickly would be:

$ export TERM=vt100; less README.md

As the termcap/terminfo entry for vt100 is usually more widely
available, this may unblock you.

> It seems like loss of colors on an old platform is not that important.
> However, the message being printed creates an actionable item that
> needs attention. I think no message would be a better option.

You would want to redirect it to folks who work on "less" ;-)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: WARNING: terminal is not fully functional
  2022-01-27  6:15 ` Junio C Hamano
@ 2022-01-27  7:05   ` Jeffrey Walton
  2022-01-27 18:44     ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Jeffrey Walton @ 2022-01-27  7:05 UTC (permalink / raw
  To: Junio C Hamano; +Cc: Git List

On Thu, Jan 27, 2022 at 1:15 AM Junio C Hamano <gitster@pobox.com> wrote:
>
> Jeffrey Walton <noloader@gmail.com> writes:
>
> > I needed to install Git on Ubuntu 8. Git seems to work Ok for most
> > task, but this is unusual:
> >
> >     $ git diff
> >     WARNING: terminal is not fully functional
> >     -  (press RETURN)
> >
> > Here's the terminal:
> >
> >     $ echo $TERM
> >     xterm-256color
>
> A short answer.  You are using "less" as the pager, but it is not
> working with your terminal.  Likely reason is perhaps you are
> missing terminfo/termcap database entry for that terminal.
>
> I have working xterm-256color, so
>
>         $ TERM=xterm-256color less README.md
>
> works as expected, but using a (bogus) terminal that no system would
> have ever heard of, e.g.
>
>         $ TERM=no-such-terminal-exists less README.md
>
> results in exactly the symptom you are observing.
>
> Something to try quickly would be:
>
> $ export TERM=vt100; less README.md
>
> As the termcap/terminfo entry for vt100 is usually more widely
> available, this may unblock you.
>
> > It seems like loss of colors on an old platform is not that important.
> > However, the message being printed creates an actionable item that
> > needs attention. I think no message would be a better option.
>
> You would want to redirect it to folks who work on "less" ;-)

Oh, sorry about that.

Jeff

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: WARNING: terminal is not fully functional
  2022-01-27  7:05   ` Jeffrey Walton
@ 2022-01-27 18:44     ` Junio C Hamano
  0 siblings, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2022-01-27 18:44 UTC (permalink / raw
  To: Jeffrey Walton; +Cc: Git List

Jeffrey Walton <noloader@gmail.com> writes:

> On Thu, Jan 27, 2022 at 1:15 AM Junio C Hamano <gitster@pobox.com> wrote:
>>
>> Jeffrey Walton <noloader@gmail.com> writes:
>>
>> > I needed to install Git on Ubuntu 8. Git seems to work Ok for most
>> > task, but this is unusual:
>> >
>> >     $ git diff
>> >     WARNING: terminal is not fully functional
>> >     -  (press RETURN)
>> >
>> > Here's the terminal:
>> >
>> >     $ echo $TERM
>> >     xterm-256color
>> ...
>> Something to try quickly would be:
>>
>> $ export TERM=vt100; less README.md
>>
>> As the termcap/terminfo entry for vt100 is usually more widely
>> available, this may unblock you.
>> 
>> > It seems like loss of colors on an old platform is not that important.
>> > However, the message being printed creates an actionable item that
>> > needs attention. I think no message would be a better option.
>>
>> You would want to redirect it to folks who work on "less" ;-)
>
> Oh, sorry about that.

No need to be sorry for that.

I seem to have these terminfo database entries for terminals whose
name begin with 'x':

    $ /bin/ls /lib/terminfo/x
    xterm
    xterm-256color
    xterm-color
    xterm-debian
    xterm-mono
    xterm-r5
    xterm-r6
    xterm-vt220
    xterm-xfree86

my suspicion is that you are lacking xterm-256color for some reason.
These usually come from ncurses-base package if I am not mistaken.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-27 18:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-27  6:00 WARNING: terminal is not fully functional Jeffrey Walton
2022-01-27  6:15 ` Junio C Hamano
2022-01-27  7:05   ` Jeffrey Walton
2022-01-27 18:44     ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).