* echotc/echoti
@ 2007-10-11 20:30 Atom Smasher
2007-10-12 3:00 ` echotc/echoti Clint Adams
0 siblings, 1 reply; 3+ messages in thread
From: Atom Smasher @ 2007-10-11 20:30 UTC (permalink / raw)
To: zsh-users
what are the differences (practical, theoretical, etc) between:
% echotc xxx
and
% print -n ${termcap[xxx]}
and also between:
% echoti yyy
and
% print -n ${terminfo[yyy]}
thanks...
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"For every dollar the boss has and didn't work for,
one of us worked for a dollar and didn't get it."
-- William 'Big Bill' Haywood
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: echotc/echoti
2007-10-11 20:30 echotc/echoti Atom Smasher
@ 2007-10-12 3:00 ` Clint Adams
2007-10-12 6:06 ` echotc/echoti Bart Schaefer
0 siblings, 1 reply; 3+ messages in thread
From: Clint Adams @ 2007-10-12 3:00 UTC (permalink / raw)
To: zsh-users
On Fri, Oct 12, 2007 at 09:30:33AM +1300, Atom Smasher wrote:
> what are the differences (practical, theoretical, etc) between:
>
> % echotc xxx
> and
> % print -n ${termcap[xxx]}
>
> and also between:
>
> % echoti yyy
> and
> % print -n ${terminfo[yyy]}
>
> thanks...
echotc and echoti output the capability strings directly to the
terminal, with output padding.
Your print statements undergo expansion.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: echotc/echoti
2007-10-12 3:00 ` echotc/echoti Clint Adams
@ 2007-10-12 6:06 ` Bart Schaefer
0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2007-10-12 6:06 UTC (permalink / raw)
To: zsh-users
On Oct 11, 11:00pm, Clint Adams wrote:
} Subject: Re: echotc/echoti
}
} On Fri, Oct 12, 2007 at 09:30:33AM +1300, Atom Smasher wrote:
} > what are the differences (practical, theoretical, etc) between:
} >
} > % echotc xxx
} > % echoti yyy
} > and
} > % print -n ${termcap[xxx]}
} > % print -n ${terminfo[yyy]}
}
} echotc and echoti output the capability strings directly to the
} terminal, with output padding.
Well, directly to standard output, which is assumed to be the terminal.
echotc and echoti are also capable of replacing positional arguments
into the termcap/terminfo string. E.g.
echotc cm 12 20
or
echoti cup 12 20
places the cursor in row 12 column 20.
You can probably work out how to do this with some sort of replacement
on ${terminfo[cup]} but it won't be pretty.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-10-12 6:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-11 20:30 echotc/echoti Atom Smasher
2007-10-12 3:00 ` echotc/echoti Clint Adams
2007-10-12 6:06 ` echotc/echoti Bart Schaefer
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).