History log of /systemd/src/basic/terminal-util.h
Revision Date Author Comments Expand
40c9fe4c0862114dab390c8ed16f78cf056b9140 20-Jan-2016 Jan Synacek <jsynacek@redhat.com>

basic/terminal-util: introduce SYSTEMD_COLORS environment variable ... to determine if color output should be enabled. If the variable is not set, fall back to using on_tty(). Also, rewrite existing code to use colors_enabled() where appropriate.

11c3a36649e5e5e77db499c92f3cdcbd619efd3a 30-Nov-2015 Thomas Hindoe Paaboel Andersen <phomes@gmail.com>

basic: include only what we use This is a cleaned up result of running iwyu but without forward declarations on src/basic.

af-list.c alloc-util.c alloc-util.h arphrd-list.c async.c audit-util.c barrier.c barrier.h bitmap.c bitmap.h btrfs-util.c btrfs-util.h bus-label.c bus-label.h calendarspec.c calendarspec.h cap-list.c capability-util.c capability-util.h cgroup-util.c cgroup-util.h chattr-util.c clock-util.c conf-files.c copy.c copy.h cpu-set-util.c device-nodes.c device-nodes.h dirent-util.c dirent-util.h env-util.c env-util.h errno-list.c escape.c escape.h ether-addr-util.c exit-status.h extract-word.c fd-util.c fdset.c fdset.h fileio-label.c fileio.c fs-util.c fs-util.h glob-util.c glob-util.h gunicode.c hashmap.c hashmap.h hexdecoct.c hexdecoct.h hostname-util.c in-addr-util.c in-addr-util.h io-util.c io-util.h json.c json.h label.c locale-util.c lockfile-util.c lockfile-util.h log.c login-util.c memfd-util.c memfd-util.h mempool.c mkdir-label.c mkdir.c mount-util.c mount-util.h parse-util.c parse-util.h path-util.c path-util.h prioq.c prioq.h proc-cmdline.c process-util.c process-util.h random-util.c random-util.h ratelimit.c ratelimit.h replace-var.c rlimit-util.c rm-rf.c selinux-util.c selinux-util.h sigbus.c signal-util.c siphash24.c siphash24.h smack-util.c smack-util.h socket-label.c socket-util.c socket-util.h stat-util.c stat-util.h strbuf.c strbuf.h string-table.c string-table.h string-util.c string-util.h strv.c strv.h strxcpyx.c strxcpyx.h syslog-util.c terminal-util.c terminal-util.h time-util.c time-util.h unit-name.c user-util.c utf8.c utf8.h util.c util.h verbs.c virt.c xattr-util.c xattr-util.h xml.c
71d35b6b5563817dfbe757ab9e3b9f018b2db491 18-Nov-2015 Thomas Hindoe Paaboel Andersen <phomes@gmail.com>

tree-wide: sort includes in *.h This is a continuation of the previous include sort patch, which only sorted for .c files.

audit-util.h bitmap.h calendarspec.h cgroup-util.h escape.h fd-util.h fileio-label.h fs-util.h gunicode.h ioprio.h json.h memfd-util.h process-util.h selinux-util.h socket-util.h terminal-util.h user-util.h /systemd/src/bootchart/bootchart.h /systemd/src/bootchart/store.h /systemd/src/bus-proxyd/bus-xml-policy.h /systemd/src/bus-proxyd/driver.h /systemd/src/core/bus-endpoint.h /systemd/src/core/bus-policy.h /systemd/src/core/cgroup.h /systemd/src/core/dbus-kill.h /systemd/src/core/dbus-scope.h /systemd/src/core/dbus-service.h /systemd/src/core/dbus-slice.h /systemd/src/core/dbus-socket.h /systemd/src/core/dbus-swap.h /systemd/src/core/dbus-timer.h /systemd/src/core/dbus-unit.h /systemd/src/core/execute.h /systemd/src/core/job.h /systemd/src/core/load-dropin.h /systemd/src/core/manager.h /systemd/src/core/mount.h /systemd/src/core/selinux-access.h /systemd/src/core/service.h /systemd/src/core/socket.h /systemd/src/core/transaction.h /systemd/src/core/unit.h /systemd/src/import/curl-util.h /systemd/src/import/export-raw.h /systemd/src/import/export-tar.h /systemd/src/import/import-compress.h /systemd/src/import/import-raw.h /systemd/src/import/import-tar.h /systemd/src/import/pull-common.h /systemd/src/import/pull-dkr.h /systemd/src/import/pull-job.h /systemd/src/import/pull-raw.h /systemd/src/import/pull-tar.h /systemd/src/journal-remote/journal-remote-parse.h /systemd/src/journal-remote/journal-remote.h /systemd/src/journal-remote/journal-upload.h /systemd/src/journal-remote/microhttpd-util.h /systemd/src/journal/catalog.h /systemd/src/journal/fsprg.h /systemd/src/journal/journal-file.h /systemd/src/journal/journal-internal.h /systemd/src/journal/journald-audit.h /systemd/src/libsystemd-network/arp-util.h /systemd/src/libsystemd-network/dhcp-lease-internal.h /systemd/src/libsystemd-network/dhcp-protocol.h /systemd/src/libsystemd-network/dhcp-server-internal.h /systemd/src/libsystemd-network/dhcp6-lease-internal.h /systemd/src/libsystemd-network/lldp-tlv.h /systemd/src/libsystemd-network/network-internal.h /systemd/src/libsystemd/sd-bus/bus-control.h /systemd/src/libsystemd/sd-bus/bus-dump.h /systemd/src/libsystemd/sd-bus/bus-error.h /systemd/src/libsystemd/sd-bus/bus-introspect.h /systemd/src/libsystemd/sd-bus/bus-slot.h /systemd/src/libsystemd/sd-netlink/local-addresses.h /systemd/src/libudev/libudev-private.h /systemd/src/login/logind-acl.h /systemd/src/login/logind-action.h /systemd/src/login/logind-session.h /systemd/src/machine/machined.h /systemd/src/network/networkd-address-pool.h /systemd/src/network/networkd-address.h /systemd/src/network/networkd-fdb.h /systemd/src/network/networkd-link.h /systemd/src/network/networkd-netdev-vxlan.h /systemd/src/network/networkd-netdev.h /systemd/src/network/networkd-network.h /systemd/src/network/networkd-route.h /systemd/src/network/networkd.h /systemd/src/nspawn/nspawn-cgroup.h /systemd/src/nspawn/nspawn-expose-ports.h /systemd/src/nspawn/nspawn-network.h /systemd/src/nspawn/nspawn-settings.h /systemd/src/resolve/resolved-dns-cache.h /systemd/src/resolve/resolved-dns-packet.h /systemd/src/resolve/resolved-dns-query.h /systemd/src/resolve/resolved-dns-rr.h /systemd/src/resolve/resolved-dns-scope.h /systemd/src/resolve/resolved-dns-transaction.h /systemd/src/resolve/resolved-dns-zone.h /systemd/src/resolve/resolved-manager.h /systemd/src/shared/acl-util.h /systemd/src/shared/cgroup-show.h /systemd/src/shared/conf-parser.h /systemd/src/shared/efivars.h /systemd/src/shared/logs-show.h /systemd/src/shared/machine-image.h /systemd/src/shared/nss-util.h /systemd/src/systemd/sd-bus.h /systemd/src/systemd/sd-daemon.h /systemd/src/systemd/sd-device.h /systemd/src/systemd/sd-dhcp-client.h /systemd/src/systemd/sd-dhcp-server.h /systemd/src/systemd/sd-dhcp6-client.h /systemd/src/systemd/sd-event.h /systemd/src/systemd/sd-ipv4acd.h /systemd/src/systemd/sd-ipv4ll.h /systemd/src/systemd/sd-journal.h /systemd/src/systemd/sd-lldp.h /systemd/src/systemd/sd-login.h /systemd/src/systemd/sd-messages.h /systemd/src/systemd/sd-ndisc.h /systemd/src/systemd/sd-netlink.h /systemd/src/systemd/sd-network.h /systemd/src/systemd/sd-resolve.h /systemd/src/timesync/timesyncd-conf.h /systemd/src/timesync/timesyncd-manager.h /systemd/src/timesync/timesyncd-server.h
b8faf2ecd551d853c449c7cadc3944af84156bc9 27-Oct-2015 Lennart Poettering <lennart@poettering.net>

util-lib: move status printing stuff into src/core/ It's very specific to the core, and not used elsewhere, hence move it out of terminal-util.[ch].

40e1f4ea7458a0a80eaf1ef356e52bfe0835412e 08-Oct-2015 Lennart Poettering <lennart@poettering.net>

machined: when opening a shell via machined, pass tty fds in With this change we'll open the shell's tty right from machined and then pass it to the transient unit we create. This way we make sure the pty is opened exactly as long as the transient service is around, and no longer, and vice versa. This way pty forwarders do not have to deal with EIO problems due to vhangup, as the pty is open all the time from the point we set things up to the point where the service goes away.

66cb2fde7b0ab6603775ad13c30c004f5fd88f0c 08-Oct-2015 Lennart Poettering <lennart@poettering.net>

basic: move two more terminal-related calls into terminal-util.[ch]

2c6c4ab2f5523940df64af205315612d89b818f0 01-Oct-2015 Lennart Poettering <lennart@poettering.net>

logind: remove warn_melody() logic The internal speaker is usually not available on modern latops that support suspend, and even if it is available in the hardware, most distributions turned support for it off in the kernel. And even if it is enabled, it's probably still a bad idea to make use of it for the suspend-failures. If anything a proper sound should be played. Long story short, let's remove support of this anachronism.

1fc464f6fbecfc5d8ba9f7b98d19e21fb324bfb9 22-Sep-2015 Lennart Poettering <lennart@poettering.net>

cgtop: underline table header Let's underline the header line of the table shown by cgtop, how it is customary for tables. In order to do this, let's introduce new ANSI underline macros, and clean up the existing ones as side effect.

a07c35c3e65c16264cb25206c2d564afdbae8a28 01-Sep-2015 Lennart Poettering <lennart@poettering.net>

machined: introduce a ptsname_namespace() call and make use of it The call is like ptsname() but does not assume the pty path was accessible in the local namespace. It uses the same internal ioctl though.

a095315b3c31f7a419baceac82c26c3c5ac0cd12 11-Jun-2015 Kay Sievers <kay@vrfy.org>

build-sys: split internal basic/ library from shared/ basic/ can be used by everything cannot use anything outside of basic/ libsystemd/ can use basic/ cannot use shared/ shared/ can use libsystemd/

/systemd/Makefile.am /systemd/README /systemd/src/Makefile .gitignore MurmurHash2.c MurmurHash2.h af-list.c af-list.h arphrd-list.c arphrd-list.h async.c async.h audit.c audit.h barrier.c barrier.h blkid-util.h btrfs-ctree.h btrfs-util.c btrfs-util.h build.h bus-label.c bus-label.h calendarspec.c calendarspec.h cap-list.c cap-list.h capability.c capability.h cgroup-util.c cgroup-util.h clock-util.c clock-util.h conf-files.c conf-files.h copy.c copy.h def.h device-nodes.c device-nodes.h env-util.c env-util.h errno-list.c errno-list.h ether-addr-util.h exit-status.c exit-status.h fdset.c fdset.h fileio-label.c fileio-label.h fileio.c fileio.h gunicode.c gunicode.h hashmap.c hashmap.h hostname-util.c hostname-util.h in-addr-util.c in-addr-util.h ioprio.h json.c json.h label.c label.h list.h locale-util.c locale-util.h lockfile-util.c lockfile-util.h log.c log.h login-util.c login-util.h macro.h memfd-util.c memfd-util.h mempool.c mempool.h missing.h mkdir-label.c mkdir.c mkdir.h ordered-set.h path-util.c path-util.h prioq.c prioq.h process-util.c process-util.h random-util.c random-util.h ratelimit.c ratelimit.h refcnt.h replace-var.c replace-var.h ring.c ring.h rm-rf.c rm-rf.h securebits.h selinux-util.c selinux-util.h set.h sigbus.c sigbus.h signal-util.c signal-util.h siphash24.c siphash24.h smack-util.c smack-util.h socket-label.c socket-util.c socket-util.h sparse-endian.h special.h strbuf.c strbuf.h strv.c strv.h strxcpyx.c strxcpyx.h terminal-util.c terminal-util.h time-util.c time-util.h unaligned.h unit-name.c unit-name.h utf8.c utf8.h util.c util.h verbs.c verbs.h virt.c virt.h xml.c xml.h /systemd/src/libsystemd-terminal/grdev-drm.c /systemd/src/libsystemd-terminal/grdev.c /systemd/src/libsystemd-terminal/idev.c /systemd/src/libsystemd/sd-bus/bus-internal.c /systemd/src/libsystemd/sd-bus/bus-internal.h /systemd/src/libsystemd/sd-login/sd-login.c /systemd/src/login/logind-session.h /systemd/src/login/test-login-shared.c /systemd/src/shared/bus-util.c /systemd/src/shared/bus-util.h