Skip to content

Recover canvas after crash #152

Open

Description

@frozen-cdn

Okay well I am not too happy about this one.. Muscle memory had me highlight a section of an NFO I was working on and pressed ctrl+shift+C to copy the text.

Image

Come on, are you kidding me right now? What's with the hyper-panic instant close without even warning the user? This is insane

It does it on ctrl+shift+c even which is supposed to be safe

Activity

  1. changed the title [-]Presisng CTRL+C cost me an hours work[/-] [+]Pressing CTRL+C to copy text cost me an hours work[/+] on Nov 9, 2026
  2. cmang commented on Nov 9, 2026

    @cmang
    Member

    Damn. I'm sorry to read that you lost work, and again, appreciate the feedback. This makes a lot of sense.

    The thinking here was that, if something goes wrong and the user panics and presses ctrl-c to exit an undesirable state, then fixing the terminal and printing a stack trace is preferable to printing a stack trace to a broken (from ncurses) terminal. It does this by capturing the SIGINT signal with a handler. That is somewhat typical, if primitive, UNIX behavior. I didn't really prioritize ctrl-c meaning "copy" for some people, becausein my mind it means "die, process, die."

    Naturally, a dump/recover of the canvas would probably make sense, too. Like Vim's crash recovery.

    But I think a warning also makes a lot of sense, especially since ctrl-c is used in GUI software for copy.

    I'll put a warning prompt in there for sure, or figure out some other way to handle it.

    ctrl+shift+c even which is supposed to be safe

    Can you elaborate a bit on this? I think ctrl-shift-c is something like "Copy as plain text" in Windows? Is that what you meant?

  3. pinned and unpinned a comment on Nov 9, 2026
  4. cmang commented on Nov 10, 2026

    @cmang
    Member

    @frozen-cdn I added a warning and the ability to back out of ctrl-c. It is in 0.32.0-beta.

    Image
  5. changed the title [-]Pressing CTRL+C to copy text cost me an hours work[/-] [+]Recover canvas after crash[/+] on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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