Re: Identifier matching in the at command

Adrian Fita <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <CAAEuNhHRsvgGmd+WqRpLFbW5oqY02eE=P+4=1cp9mFoAzz_=Yg@mail.gmail.com>
On Fri, Feb 3, 2012 at 13:48, Adrian Fita <[email protected]> wrote:
>
> [...]
>
> I'm interested in matching only a list of windows (title or numbers)
> or a range of numbers. Is this possible? If yes, how?

Seeing there doesn't seem to be an answer too soon, I poked around in
the source code at http://git.savannah.gnu.org/cgit/screen.git and I
think I found the code that parses the identifier in the "at" command.
It's located in the file process.c and begins at line no 1587. There,
at line 1605 I found the following:

if (strncmp(args[0], fore->w_title, n))
		      continue;

It seems that the title is only matched with a srtcnmp, not at all
with some regexp which would allow some advanced expressions for
matching the title. So I guess I'll have to make do with the three
matching methods I mentioned in the previous message. Am i right?

-- 
Fita Adrian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.