|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The current interface has various issues that are fixed by
this new interface. Here's the design decisions that went
into the new interface:
- On various computer formfactors, like desktops, laptops
and servers, people running commands in them typically use
a complete hardware keyboard to type them.
Tab is typically available for command completion which
makes commands like disable_modem.sh way less common than
modem_disable.sh.
The result is that modem_disable feels more intuitive to
people that are already used to type commands.
- On Replicant 6.0, on the Galaxy SII which has a small
screen, the underscore (_) key is not immediately
available on the default keyboard, and to get it,
you need to press the "?123" key and press longer on the
minus key (-) to finally have 3 choices where the
underscore displayed in the middle and selected by
default.
However the spacebar ( ) is available.
- On Replicant 6.0, on the Galaxy SII, with the default
keyboard, the Tab key is also not available at all, so
it's best if the commands are as short as possible to
type, as any mistake requires the user to restart typing
it from scratch as there are no arrow keys that could
enable them to correct the previous command (assuming they
know that arrows can do that, which is typically not the
case for many people new to the command line).
'on' and 'off' are way shorter and less error prone than
'enable' and 'disable'.
- Using modem.sh is longer than modem, however the dot (.)
is available on the default keyboard, including on the
Galaxy SII, and to many people that know a bit about the
shell, it will not hide the fact that it is a shell
script, which can empower them to modify it.
- For the usage message the text has been made in a way that
can fit the Galaxy SII small screen. It also been made to
enable users to just type again 'modem.sh off' without
necessarily understanding the shell semantics like # or $.
- Finally the commands need to be easy enough to remember
or to find as people might be in a hurry and need to
enable or disable the modem fast, while being far away
from any computer or Internet connection. While
'modem.sh enable' is probably easier to remember,
'modem.sh on' is good enough, while being shorted to type.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
|