forked from martijnvanbrummelen/nwipe
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn user if they press 's' instead of 'S'
I have come across a new user that couldn't start a wipe, until it was pointed out that to start a wipe you needed to type shift S. While this is often true, shift S doesn't start a wipe if you have caps lock on. To be precise you need to type a capital S. Confusing to a new user because if they have been told to type shift S but their caps lock is on, then nothing happens. Also how would you know you are supposed to type a capital S when the key info puts all keys in caps. The fix for this is to trap the lower case s and then print a message on the status line that says "Use capital S to start a wipe". This message could remain on the status line for 3 seconds then revert back to the standard key info. The use of capital S is to try to reduce the likelihood of an accidental wipe you didn't mean to start, however, I've always thought that maybe we should have a 'are you sure ?' after the user types 'S' . A non issue once you're familiar with nwipe but probably irritating to a new user.
- Loading branch information
1 parent
7d93a44
commit a4d5164
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters