zsh-workers
 help / color / mirror / code / Atom feed
From: lilydjwg <lilydjwg@gmail.com>
To: zsh-workers@zsh.org
Subject: background job and atuin don't work well
Date: Fri, 9 Feb 2024 19:13:00 +0800	[thread overview]
Message-ID: <ZcYIvLJSVF-eufa5@lilyboudoir.localdomain> (raw)

atuin[1] is a history searcher that runs in the zle context. It
interacts with /dev/tty to show its UI.

I find that when a background job finishes during atuin is running, the
terminal state is corrupted, e.g. when \n is printed, it only moves the
cursor down, but not to the start. A `reset` fixes it.

atuin does restore the terminal state, but after that then zsh sets it
wrongly. If I `setopt localoptions nonotify` before running atuin, this
issue won't happen, but I can't see the background job status update
unless I run `jobs` manually.

[1]: https://github.com/atuinsh/atuin

-- 
Best regards,
lilydjwg


                 reply	other threads:[~2024-02-09 11:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZcYIvLJSVF-eufa5@lilyboudoir.localdomain \
    --to=lilydjwg@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).