Skip to content

Ctrl-C when using --ask causes invisible terminal cursor #374

@fxzzi

Description

@fxzzi

I have confirmed that this is a bug related to nnh

  • This is a bug, and not an user error or a support request. I understand that my issue will be closed if it is not a bug in NH.
  • I have checked the issues tab and confirmed that my issue has not yet been reported. I understand that my issue will be closed if it is a duplicate.

Description

Running any nh related command with --ask, an example being nh os switch --ask, and using Ctrl-C / killing nh in any way at the final prompt, causes the cursor on my terminal emulator (foot) to become invisible.

It can be brought back by running an nh command with --ask again, and choosing y / n at the prompt.

Installation Method

NixOS (nixpkgs, pkgs.nh)

Installation Method (Other)

No response

NH Version

nh 4.1.1

System Information

  • system: "x86_64-linux"
  • host os: Linux 6.15.8-zen1, NixOhEss, 25.11 (Xantusia), 25.11.20250803.b16813b
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.93.3 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/faaris/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/faaris/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/faaris/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/faaris/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/56yfzcswfrd234zq4mz0qvrn2iks1frb-lix-2.93.3/share
  • nixpkgs: /nix/store/km38bigmcfqwvl5531m00gbnw3qnk0s7-source

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions