also work similarly. If you make the console width smaller or wider then
spots already on the screen will not resize.
2. For client programs that parse the output (why? use set/ve7cc to get more
- easily machine parsed output), a new command "set/columns <width>" is
+ easily machine parsed output), a new command "set/width <width>" is
available.
18Nov21=======================================================================
1. Add a dx spot cache which will store 2 days worth (configurable) of spots.
+++ /dev/null
-#
-# set the page width for this invocation of the client
-#
-# Copyright (c) 2021 - Dirk Koopman G1TLH
-#
-#
-#
-my $self = shift;
-my $l = shift;
-$l = 80 if $l < 80;
-$self->width($l);
-return (1, $self->msg('pagewidth', $l));
--- /dev/null
+#
+# set the page width for this invocation of the client
+#
+# Copyright (c) 2021 - Dirk Koopman G1TLH
+#
+#
+#
+my $self = shift;
+my $l = shift;
+$l = 80 if $l < 80;
+$self->width($l);
+return (1, $self->msg('pagewidth', $l));
my $t = ztime($_[2]);
my $loc = '';
- my $clth = 30 + $self->{width} - 80; # allow comment to grow according the screen width
+ my $clth = 31 + $self->{width} - 80; # allow comment to grow according the screen width
# --$clth if $self->{consort} eq 'local';
my $comment = substr (($_[3] || ''), 0, $clth);
+ $comment =~ s/\t/ /g;
$comment .= ' ' x ($clth - (length($comment)));
if ($self->{user}->wantgrid) {
{
my $t = ztime($_[3]);
my $d = cldate($_[3]);
- my $width = ($_[0] ? $_[0] : 80) - 80 + 28;
+ my $spotter = "<$_[5]>";
my $comment = $_[4] || '';
- $comment = substr $comment, 0, $width if length($comment) > $width;
- $comment .= ' ' x ($width - length($comment)) if length($comment) < $width;
+ $comment =~ s/\t+/ /g;
+ my $cl = length $comment;
+ my $s = sprintf "%8.1f %-11s %s %s", $_[1], $_[2], $d, $t;
+ my $width = ($_[0] ? $_[0] : 80) - length($spotter) - length($s) - 2;
+
+ $comment = substr $comment, 0, $width if $cl > $width;
+ $comment .= ' ' x ($width-$cl) if $cl < $width;
# return sprintf "%8.1f %-11s %s %s %-28.28s%7s>", $_[0], $_[1], $d, $t, ($_[3]||''), "<$_[4]" ;
- return sprintf "%8.1f %-11s %s %s ${comment}%7s>", $_[1], $_[2], $d, $t, "<$_[5]" ;
+ return "$s $comment$spotter";
}
# enter the spot for dup checking and return true if it is already a dup