dvdhrm / kmscon

Linux KMS/DRM based virtual Console Emulator
http://www.freedesktop.org/wiki/Software/kmscon
Other
429 stars 78 forks source link

Feature: Show current tty #107

Open ghost opened 10 years ago

ghost commented 10 years ago

Show current tty number before asking for login information

dvdhrm commented 10 years ago

Why?

ghost commented 10 years ago

Well, it would make it easier to identify which tty is which if you have not logged in yet or have recently logged off.

dvdhrm commented 10 years ago

Thing is, the screen is controlled by the PTY, so anything written by kmscon will be overwritten by pty content, if not explicitly protected. The right place to do sth like that would be /etc/motd and make /bin/login support a special variable to replace by the VT (or simply print $XDG_VTNR)

microcai commented 10 years ago

print before execing login ?