1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

Userland: Tweak "w" output just slightly

This commit is contained in:
Andreas Kling 2020-09-06 18:48:00 +02:00
parent 48a0b76a77
commit ae9c5bf216

View file

@ -35,8 +35,8 @@ int main()
return 1;
}
printf("%-10s %-12s %-16s %-16s\n",
"USER", "TTY", "FROM", "LOGIN@");
printf("\033[1m%-10s %-12s %-16s %-16s\033[0m\n",
"USER", "TTY", "FROM", "LOGIN@");
json.value().as_object().for_each_member([&](auto& tty, auto& value) {
const JsonObject& entry = value.as_object();
auto uid = entry.get("uid").to_u32();