Re: agetty improvement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jan 27, 2016 at 09:44:04PM +0200, Victor Ananjevsky wrote:
> is that possible to add a handle of esc sequences (\eXXX) to agetty in an upcomeng releases?
> there is a simple patch to do this
> 
> 
> --- util-linux-2.24/term-utils/agetty.c.orig	2013-10-10 13:44:17.000000000 +0300
> +++ util-linux-2.24/term-utils/agetty.c	2013-11-12 08:12:26.457936826 +0200
> @@ -2104,6 +2104,9 @@
>  		}
>  		break;
>  	}
> +	case 'e':
> +		printf("\033");
> +		break;

You can already use ESC sequences in the issue file, but I agree that
use \e is more readable and elegant. 

Implemented, will be in v2.28. Thanks!


Now when I think about it, we already have infrastructure to convert
color names to the real sequences. Maybe it would be nice to support
\e{red} \e{lightgreen} to keep /etc/issue files more readable.
Comments?

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux