help-bash
[Top][All Lists]
Advanced

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

Re: redirection back to tty problem


From: Alex fxmbsw7 Ratchev
Subject: Re: redirection back to tty problem
Date: Sun, 27 Feb 2022 20:40:09 +0100

passed further

thanks =)

On Sun, Feb 27, 2022 at 6:19 PM Chris Elvidge <celvidge001@gmail.com> wrote:

> I put the code into functions, you might like to pass this on as well
>
> col -bpx removes any backspace functions, translates tabs to spaces.
>
>
> vhelp ()
> {
>         # try --help first, -h if it doesn't work
>         if "$1" --help &>/dev/null; then
>             "$1" --help 2>&1 | col -bpx | view -c 'set ft=man nomod' -c
> 'set
> noeb vb t_vb=' -c 'map q <Esc>:q!<cr>' -c 'map i <nop>' -
>         else
>             "$1" -h 2>&1 | col -bpx | view -c 'set ft=man nomod' -c 'set
> noeb
> vb t_vb=' -c 'map q <Esc>:q!<cr>' -c 'map i <nop>' -
>         fi
> }
> gvhelp ()
> {
>         if "$1" --help &>/dev/null; then
>             "$1" --help 2>&1 | col -bpx | gview -c 'set ft=man nomod' -c
> 'set
> noeb vb t_vb=' -c 'map q <Esc>:q!<cr>' -c 'map i <nop>' -
>         else
>             "$1" -h 2>&1 | col -bpx | gview -c 'set ft=man nomod' -c 'set
> noeb
> vb t_vb=' -c 'map q <Esc>:q!<cr>' -c 'map i <nop>' -
>         fi
> }
> export -f vhelp gvhelp
>
> See attached.
>
>
>
>
> --
>
> Chris Elvidge
>
>
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]