Andreas Kling
bc48181939
Userland: Add missing license headers to "w" and "utmpupdate"
2020-09-06 20:44:16 +02:00
Andreas Kling
4e2ccde85a
Userland: Shorten "w" idle time format
...
Let's just say "123s" for now (instead of "123 sec")
2020-09-06 19:13:52 +02:00
Andreas Kling
6dc5cda50d
Userland: Bring back improved "LOGIN@" column in "w"
...
This actually looks a lot nicer if we slim down the datetime format.
Also remove the "FROM" column which was the one I actually didn't want.
2020-09-06 19:13:00 +02:00
Andreas Kling
d531b4fa61
Userland: Show the current foreground process name in "w" output
...
Add a "WHAT" column that shows which command is currently executing in
each active session. Very neat :^)
2020-09-06 19:05:08 +02:00
Andreas Kling
5a934c37cf
Userland: Remove "LOGIN@" column from "w" since it's not really useful
...
Maybe we can bring this back once we have remote logins, or at least
make it optional then. At the moment, it's not very interesting.
2020-09-06 18:59:56 +02:00
Andreas Kling
abce7e7ca2
Userland: Show idle times in "w" output
...
The idle time is based on the mtime of the session's TTY :^)
2020-09-06 18:58:58 +02:00
Andreas Kling
ae9c5bf216
Userland: Tweak "w" output just slightly
2020-09-06 18:48:00 +02:00
Andreas Kling
8e489b451a
Userland: Add a simple 'w' program that shows current terminal sessions
...
This fetches information from /var/run/utmp and shows the interactive
sessions in a little list. More things can be added here to make it
more interesting. :^)
2020-09-06 16:16:10 +02:00