#961679 base-files: please include window title in /etc/issue

Package:
base-files
Source:
base-files
Description:
Debian base system miscellaneous files
Submitter:
Adam Borowski
Date:
2024-04-15 11:30:03 UTC
Severity:
wishlist
Tags:
#961679#5
Date:
2020-05-27 20:43:34 UTC
From:
To:
Package: base-files
Version: 11
Severity: wishlist
Tags: patch

Hi!
It would be good if /etc/issue set the window title appropriately.

While it might sound wrong (as /etc/issue is used only for local terminals),
serial consoles do count as local.  Thus, the output may hit either a real
console which since Linux 3.16 ignores these sequences, or a terminal
emulator.

I thus propose to set default /etc/issue to:
\e]0;⭍\n\e\\Debian GNU/Linux \n \l

Explanation:
'\e' means ESC (0x1b).
'\e]0; foo bar baz \e\\' means "set window title to ' foo bar baz '.
'⭍' is my marker that the console is serial rather than ssh; you
    may or may not want to keep this bit.
'\n' is counterintuitively machine name rather than 0x0a.
'Debian GNU/Linux \n \l' is the old /etc/issue -- kept unchanged.


Meow!

#961679#10
Date:
2024-04-15 11:27:48 UTC
From:
To:
El 27/5/20 a las 22:43, Adam Borowski escribió:
you have only one of it (so there is usually no need to differentiate between them).

Simple question: I don't have a serial console myself. Is this a change for which the
effects can be seen when using virtual machines in the cloud? (Let's say, Hetzner,
GCP, Linode, Digital Ocean, etc).

Thanks.