[pacman-dev] [PATCH] Move cursor to the end of the screen at the SIGINT
allan at archlinux.org
Thu Nov 26 06:15:52 UTC 2020
On 4/11/20 11:04 am, Anatol Pomozov wrote:
> It requires exposing 'move cursor to the end' function in a pacman
> header file. We use it as a chance to make naming of the cursor management
> functions more consistent.
> Note that there is still possibility of a race condition in the cursor
> update logic. 'update cursor index variable' and 'send ASCII control
> symbols to console' is not an atomic operation. So if an SIGINT is
> received between these two action then cursor position is going to be
> Fixes FS#67973
> Signed-off-by: Anatol Pomozov <anatol.pomozov at gmail.com>
As an aside, I'd like to boot those console functions into a separate
file at some stage.
More information about the pacman-dev