Hi Steve,

Op 04-12-18 om 03:03 schreef Steve McIntyre:
> I'm seeing this difference in the two help lines at the bottom.  [...]

Okay: the udeb version shows "^S Save" and "^Q Where Was" at the end
of the two help lines.

First, how realistic or probable is it that nowadays someone would
install Debian while connected with a terminal over a serial line?

Second, is it possible to detect that the current terminal is using
a real serial line?  If yes, then nano could suppress the showing of
^S and ^Q in that case.

> The script debian/rules is responsible for building three different
> versions from a single source tree:
> 
>   https://salsa.debian.org/debian/nano/blob/master/debian/rules

If I understand the rules script well, a udeb version is identical
to a tiny version (also in the installation part, they just remove
all documentation in a different way).

>   CONFFLAGS_tiny = \
>                --enable-tiny \
>                --disable-speller \
>                --disable-justify \
>                --disable-tabcomp \
>                --disable-nls \
>                --disable-wrapping \
>                --with-slang
> 
> Hmmm. I'm pondering if it's just the --disable-wrapping and
> --disable-speller that are causing the differences here...

No, the --disable-speller and --disable-wrapping and --disable-justify
and --disable-tabcomp are superfluous here: they are all comprised in
--enable-tiny.  The flags could thus be reduced to just: --enable-tiny
--disable-nls --with-slang.

If detection of a serial line is not possible, then maybe I could
suppress the showing of ^S and ^Q when --with-slang is used.  The
--with-slang option is used probably only by Debian, because its use
severely handicaps nano's keyboard handling.  If it is possible to
use ncurses, nobody should be using --with-slang.

(In fact, it would be better if the flags for the tiny version did
not include --with-slang.  It would still build a small binary, but
would be able to understand things like <Ctrl+Left/Right>.  Only the
udeb version should use --with-slang, *if* the installation environment
does not provide ncurses.)

Benno

Reply via email to