Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Automate keypresses
- X-seq: zsh-users 23888
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Christian K" <syphdias@xxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: Automate keypresses
- Date: Sat, 30 Mar 2019 13:55:00 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type :content-transfer-encoding; s=fm2; bh=CMVfq1y8C0XT8Lu5Qox+UhGetY UtLVfByGa01nFDG54=; b=ZZzGCI0ABlvmNXHtXlHAzCHFmQHGOeAcKxeUoTUk6I B4pKoThLE1ptUtC59kJNLZ/ew/xfPHPQJWVLQJG4jelVZzAH7zGbgqZCNbKDv4FE IdC4CSwIMxLzrT/DbZsrt6kSB4C0n91yVqrMgCtx3D5aOLQ6BCwst2+L9DM1a5yN XDbwUqhDpeMUeUECqFCUy/fNdsT2XUAVUqDVd4Ys4RjzzeuJ/ZGs8lzTCpVqFag1 f0NYj6Tkl6TEogpHT2ELbvcvsLHYycG07KjdhejLq5eyaQ2FehwagvlI+IPZKeFU PEvWrjSnSPfDNr9tHlEOXabYO7uOFz8Eogyvl/GNHuSQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=CMVfq1y8C0XT8Lu5Qox+UhGetYUtLVfByGa01nFDG 54=; b=KD3hXU4AUMgUNy6YDZ5/FJyhdMC6hhMgtL/KE0VJJBmv5YBp22bib8l9J 14XKgY3qVjVdy1N/1Pz0v2AnxqolQ30WdOY3zaQ/Xfe3R1k1aXF6kFH12zys7f9f ZJRprUYsoTx6hd9O+HOv8QSnS0wfmfBE6ngGhbjXlS8R0UQIcykwjjzVseSmH1OQ g1D8Zg35tVXK00m3Efzk/Aq/9Z+5oxwtRKc04Q0DFvVqRLFAJ29AOW1tlC8r2zYF KUSkTBDeePVanbC7fhsK8J47POhV2sk/Nn+GRBEjH+kSXAB3oX4G641w3+yQbMer nYx8t0+yIFi/uDZnYStZh16+eTcsA==
- In-reply-to: <CAJiY44qCAM8Q9vk_8o9kin-LX1ofLcvaiboG1dzq3tb-3HRHRw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAJiY44qCAM8Q9vk_8o9kin-LX1ofLcvaiboG1dzq3tb-3HRHRw@mail.gmail.com>
Christian K wrote on Sat, 30 Mar 2019 16:49 +00:00:
> I'm trying to automate a benchmark for prompt render times with
> https://github.com/romkatv/zsh-prompt-benchmark. This requires a pressed
> Enter key to work.
>
> Is there a way so simulate key presses without using something like expect?
> Ideally this would also work in something like travis.
Do you mean this? —
$ { echo PS1=foo; echo exit } | zsh -ifs
bar% %
foo %
$
(Those percent signs are from the PROMPT_SP option)
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author