MyraHel / NetWizard

GNU General Public License v3.0
2 stars 0 forks source link

If a command is interrupted with CTRL+C, it's not been saved into history #1

Closed MyraHel closed 7 years ago

MyraHel commented 7 years ago

Example:

arp_monitor 192.168.0.1 eth0 CTRL+C

The above command won't be saved into history.

chrean commented 7 years ago

This is not the issue. This can be "fixed" by trapping CTRL+C so the user can't leave the nwshell. Do we want that?

MyraHel commented 7 years ago

I've yet trapped sigint... I'm not a noob

Il 22 ago 2017 17:51, "chrean" notifications@github.com ha scritto:

This is not the issue. This can be "fixed" by trapping CTRL+C so the user can't leave the nwshell. Do we want that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/myral/NetWizard/issues/1#issuecomment-324069891, or mute the thread https://github.com/notifications/unsubscribe-auth/AY2c98WlBowg10NBLuNt8u5QxBEm4-m6ks5savkTgaJpZM4O-vhI .

chrean commented 7 years ago

Was not. Only ^D was trapped. I've pushed a fix to trap ^C as well and now it properly saves the history even then.