poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Update the pager automatically when the window height changes


From: Bruno Haible
Subject: Update the pager automatically when the window height changes
Date: Mon, 31 Jan 2022 01:22:08 +0100

When you do
  .set pager yes
  .help
then reduce or increase the terminal window height, the pager outputs
too many / too few lines per page. To fix this, one needs a SIGWINCH
handler. This proposed patch does it: it causes the pager to "know"
about window size changes.

libreadline also has a SIGWINCH handler, but it knows how to not
interfere with the main program's SIGWINCH handler (cf. rl_catch_sigwinch
in the readline sources).


Attachment: 0003-Update-the-pager-automatically-when-the-window-heigh.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]