Skip to content

Avoid "close" event. #20

@marian-toaderr

Description

@marian-toaderr

I'm developing a console application using your library. For this application I'm trying to develop I need to block the user inside my shell. So I need to disable all events like ctrl+c, ctrl+d, etc.
I succeded blocking ctrl+c and ctrl+z events, but I'm struggling with ctrl+d. This started a EOF signal/event that closes the stream. If i handle the "close" event I can catch this, but the stream will still be closed.
I need my application to avoid closing the stream or restarting it after "close" event.
Is this possible to achieve to do with your library?
Thanks in advance :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions