lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 28 Jul 2006 18:29:05 +0200 (MEST) From: Jan Engelhardt <jengelh@...ux01.gwdg.de> To: Sam Ravnborg <sam@...nborg.org> cc: LKML <linux-kernel@...r.kernel.org> Subject: Re: [PATCH v2 0/3] kconfig/lxdialog: color theme support > Second iteration of the patchset to add color theme support to lxdialog. > This patchset allow the menuconfig user to select between a number of > different color themes for menuconfig: > blackbg, classic, mono and bluetitle Ain't nobody say the kernel lacks customization! It would have been nice to do the following, diff --fast -Ndpru -x '*.cmd' lxdialog~/util.c lxdialog/util.c --- lxdialog~/util.c 2006-07-28 16:37:28.499577000 +0200 +++ lxdialog/util.c 2006-07-28 16:52:09.929577000 +0200 @@ -63,6 +63,42 @@ do { \ dlg.dialog.hl = (h); \ } while (0) +static void set_classiciv_theme(void) +{ + dlg = (const struct dialog_info){ + .screen = {0, COLOR_CYAN, COLOR_BLUE, true}, + .shadow = {0, COLOR_BLACK, COLOR_BLACK, true}, ... + .uarrow = {0, COLOR_GREEN, COLOR_WHITE, true}, + .darrow = {0, COLOR_GREEN, COLOR_WHITE, true}, + }; + return; +} Which uses a nice memcpy call rather than tons of MOVs (assembler insns). Unfortuantely it truncates ->title. Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists