[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Potential enhancements to install-font.sh from https://www.schaffter
From: |
John Gardner |
Subject: |
Re: Potential enhancements to install-font.sh from https://www.schaffter.ca/mom/bin/install-font.sh |
Date: |
Thu, 30 Apr 2020 13:26:57 +1000 |
> You don't even have to learn the details of the escape codes with their
> inscrutable syntax an unmemorizable numerical codes.
I'm sorry, \x1B[4;1mwhat?\x1B[24;21m
On Thu, 30 Apr 2020 at 07:55, G. Branden Robinson <
address@hidden> wrote:
> At 2020-04-29T17:04:31-0400, James K. Lowden wrote:
> > If I were publishing it, I'd remove the VT100 escape codes, and format
> > my if statements without semicolons:
> >
> > if [ foo ]
> > then
> > bar
> > fi
> >
> > because that's what Steven Bourne intended. ;-)
>
> I second the Bourne "brace style"; after many years resisting it I
> finally gave in.
>
> There's nothing wrong with SGR escapes as long as uses them portably.
> You don't even have to learn the details of the escape codes with their
> inscrutable syntax an unmemorizable numerical codes.
>
> You can see an example here, in lines 42-118:
>
> https://github.com/seL4/seL4_tools/blob/master/cmake-tool/griddle
>
> Regards,
> Branden
>
- Potential enhancements to install-font.sh from https://www.schaffter.ca/mom/bin/install-font.sh, T . Kurt Bond, 2020/04/27
- Re: Potential enhancements to install-font.sh from https://www.schaffter.ca/mom/bin/install-font.sh, Morten Bo Johansen, 2020/04/28
- Re: Potential enhancements to install-font.sh from https://www.schaffter.ca/mom/bin/install-font.sh, Peter Schaffter, 2020/04/28
- Re: Potential enhancements to install-font.sh from https://www.schaffter.ca/mom/bin/install-font.sh, T . Kurt Bond, 2020/04/28
- Re: Potential enhancements to install-font.sh from https://www.schaffter.ca/mom/bin/install-font.sh, James K. Lowden, 2020/04/29
- Re: Potential enhancements to install-font.sh from https://www.schaffter.ca/mom/bin/install-font.sh, Peter Schaffter, 2020/04/30
- Re: Potential enhancements to install-font.sh from https://www.schaffter.ca/mom/bin/install-font.sh, Peter Schaffter, 2020/04/30
- the exquisite pain of signal handling in shell scripts, G. Branden Robinson, 2020/04/30