X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=cmd%2FNotes.txt;h=16b2a25c494c4761c8f95d731929931f7a688637;hb=07ea293f3919d2da76220b5fbc55b734008ed44c;hp=3768d2c389c38275320a284eb4b8e8e50c9e6065;hpb=b2e4d1c7378cfd98bd8cdf9304c2bd6e5d4b802c;p=spider.git diff --git a/cmd/Notes.txt b/cmd/Notes.txt index 3768d2c3..16b2a25c 100644 --- a/cmd/Notes.txt +++ b/cmd/Notes.txt @@ -43,12 +43,13 @@ Programming Notes ($Id$) * slash characters are replaced by '_' so the equivalent name for 'show/qth' is 'Emb_show_qth'. -* you would normally do a 'my $self = shift;' as the first thing. There +* you would normally do a 'my ($self, $line) = @_;' as the first thing. There are a complete set of accessors for DXUser, DXCommandmode and DXChannel classes and these are the recommended way of getting at these classes. A fairly standard start might be:- - $self = shift; + my ($self, $line) = @_; + @args = split /\s+/, $line; $call = $self->call; $user = $self->user; @@ -79,6 +80,23 @@ Programming Notes ($Id$) of an element (the client will put the correct one in if required [but see below]). +* As this is perl and it is very easy to alter stuff to get it correct, + I would like to see some intelligent argument processing, e.g. if + you can have one callsign, you can have several. Interpret your + arguments; so for example:- + + set/locator jo02lq - sets your own locator to JO02LQ + set/locator g1tlh jo02lq - sets G1TLH's locator (if you are allowed) + + or + + show/locator - displays your locator (and other info?) + show/locator in92jo - displays the bearing and distance to + IN92JO using your lat/long or locator + show/locator jn56in in92jo - bearing and distance between two + locators + show/locator gb7dxc - bearing and distance to gb7dxc if poss. + * Anything you output with a > as the last character is taken to mean that this is a prompt and will not have a \r or \n appended to it.