]> git.ipfire.org Git - thirdparty/util-linux.git/commit
cfdisk: remove unnecessary cursor repositioning on exit
authorKarel Zak <kzak@redhat.com>
Tue, 28 Apr 2026 13:04:09 +0000 (15:04 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 28 Apr 2026 13:04:09 +0000 (15:04 +0200)
commit8ea495145a9e20f60cbb12a75f502371b366c50a
tree7d1998d113e608dc770ecb0814c3d77826555a1b
parent555d8123c2b83ad5d0047fc87a14ad6d4b7c03cb
cfdisk: remove unnecessary cursor repositioning on exit

Remove the mvcur() call that moved the cursor to the bottom of the
terminal before endwin(). This pattern was inherited from the original
cfdisk (util-linux 2.2, 1996) and is unnecessary on modern terminals
where endwin() properly restores the terminal state.

The old behavior created extra blank lines between the previous shell
prompt and the new one after exiting cfdisk.

Addresses: https://github.com/util-linux/util-linux/discussions/4259
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/cfdisk.c