Date: Mon, 25 Oct 2010 17:42:59 -0700 From: Xin LI <delphij@delphij.net> To: FreeBSD Current <freebsd-current@FreeBSD.ORG> Subject: [PATCH] top(1) inverse display of table header Message-ID: <4CC62413.50703@delphij.net>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------000908090201000405040400 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, Here is a patch that makes top(1) to inverse its table header (PID USERNAME THR, etc). Cheers, - -- Xin LI <delphij@delphij.net> http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJMxiQSAAoJEATO+BI/yjfBbcgH/iy/y0MBHY++srGtZc5BqyWm Kh0jpRKdE1f7G708Zok501b3rbVqeXTqAHcBU/xA0JNRruTYn7ByU2kijsuMBeQC eB6LK8wurtLHu+kqBzbbgmyeUIonWht25RWrqXH1Hr1zSoTmpAOdQKz0RCoQu2W5 yeJyS9geQoZXaTTbxHrCpYbUjQ2vp6+gvBVhi5n7c4lT0wBZJ/7p1LJOu2DiGHVO TWlBh+SjKoZWrLt7LqxU/dyJ6kxpl3RVNBlRlIvL/jn/ICBBhgSfldzpckAQJ/Bt IgPTfiKjax+38RH3L62ob9B99nPF5V7Jc3JKTWdDCuJren8MH0zdtC1zM4KG8NA= =6RQi -----END PGP SIGNATURE----- --------------000908090201000405040400 Content-Type: text/plain; name="top.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="top.diff" SW5kZXg6IGNvbnRyaWIvdG9wL2Rpc3BsYXkuYwo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBjb250cmli L3RvcC9kaXNwbGF5LmMJKHJldmlzaW9uIDIxNDM1NSkKKysrIGNvbnRyaWIvdG9wL2Rpc3Bs YXkuYw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WIvdG9wL3RvcC5oCShyZXZpc2lvbiAyMTQzNTUpCisrKyBjb250 cmliL3RvcC90b3AuaAkod29ya2luZyBjb3B5KQpAQCAtMTQsNyArMTQsNyBAQAogZXh0ZXJu IGludCBIZWFkZXJfbGluZXM7CS8qIDcgKi8KIAogLyogTWF4aW11bSBudW1iZXIgb2YgY29s dW1ucyBhbGxvd2VkIGZvciBkaXNwbGF5ICovCi0jZGVmaW5lIE1BWF9DT0xTCTEyOAorI2Rl ZmluZSBNQVhfQ09MUwk1MTIKIAogLyogTG9nIGJhc2UgMiBvZiAxMDI0IGlzIDEwICgyXjEw ID09IDEwMjQpICovCiAjZGVmaW5lIExPRzEwMjQJCTEwCg== --------------000908090201000405040400--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4CC62413.50703>