[Dxspider-support] Increasing size of scrollback buffer in sysop console

djk djk at tobit.co.uk
Wed Dec 30 22:26:26 GMT 2015


On 30/12/15 20:17, Martin Davies G0HDB wrote:
> > Could the changes that you have made caused this? Send me a 'diff -u
> > /spider/perl/console.pl /spider/local' and the same for Console.pm.
>
> The output of the two 'diff -u' commands is:
>
> sysop at GB7DXC-Pi /spider/local $ diff -u /spider/perl/console.pl 
> /spider/local/console.pl
> sysop at GB7DXC-Pi /spider/local $ diff -u /spider/perl/Console.pm 
> /spider/local/Console.pm
> --- /spider/perl/Console.pm 2015-09-10 17:48:40.180967561 +0000
> +++ /spider/local/Console.pm 2015-12-29 23:30:54.526963743 +0000
> @@ -32,17 +32,20 @@
>  package main;
>
>  $maxkhist = 100;
> -$maxshist = 500;
> +# $maxshist = 500;
> +# 2015-12-29 - The above is the original entry; the following is 
> amended as per info from G1TLH
> +$maxshist = 5000;
>  if ($ENV{'TERM'} =~ /(xterm|ansi)/) {
>  #      $ENV{'TERM'} = 'color_xterm';
> +#      2015-08-30 2213z - changed $mycallcolour to bold and WWV/WCY 
> colour from cyan to magenta
>         $foreground = COLOR_BLACK();
>         $background = COLOR_WHITE();
> -       $mycallcolor = COLOR_PAIR(1);
> +       $mycallcolor = A_BOLD|COLOR_PAIR(1);
>         @colors = (
>                    [ '^DX de 
> [\-A-Z0-9]+:\s+([57][01]\d\d\d\.|\d\d\d\d\d\d+.)', COLOR_PAIR(1) ],
>                    [ '^DX', COLOR_PAIR(5) ],
>                    [ '^To', COLOR_PAIR(3) ],
> -                  [ '^(?:WWV|WCY)', COLOR_PAIR(4) ],
> +                  [ '^(?:WWV|WCY)', COLOR_PAIR(6) ],
>                    [ '^[-A-Z0-9]+ de [-A-Z0-9]+ \d\d-\w\w\w-\d\d\d\d 
> \d\d\d\dZ', COLOR_PAIR(0) ],
>                    [ '^[-A-Z0-9]+ de [-A-Z0-9]+ ', COLOR_PAIR(6) ],
>                    [ '^WX', COLOR_PAIR(3) ],
> sysop at GB7DXC-Pi /spider/local $
>
> As you'll see, the 'diff -u' on the two console.pl files didn't show 
> any differences, and 'diff -u' on the Console.pm files only shows the 
> changes I made to the $mycallcolor font (now set to bold) and the 
> change of the WWV/WCY font colour from cyan to magenta.
>
> What PuTTY emulation are you using for accessing your system(s)?  I 
> don't recall having changed anything from the defaults apart from 
> setting the PuTTY window's number of columns (to 128) and rows (to 63, 
> to fit my monitor screen height) in the PuTTY config I'm using, and 
> the PuTTY scrollback works fine when I'm not running console.pl

Please be careful about what you quote in replies as there is a 40KB 
limit on the list. Any more and I have to approve it :-)

There is nothing in the diffs that would scare this horse.

I am using the standard putty, I have no idea which version. But the 
difference probably is the putty config setting that you are using. I 
would try just using the default values and then maximising the window. 
This will let putty hopefully do the "right thing" [tm]. The point is 
that a window on the *nix box has some environment variables set on it 
to describe the lines and columns of the window. These *should* change 
(or rather *be* changed) by the thing that is controlling the window (in 
this case putty). This allows any program running in that window to 
discover and then track the underlying size changes imposed by the user.

On mine (putty on WinXP), changing the size of the window seems to be 
tracked correctly whether I am running console.pl or not. So, if 
console.pl is running, changing the size of the window will expand and 
contract the console.pl window. This can be seen by watching the two 
numbers (lines and cols respectively) to the left of the time on the 
divider line between the keyboard and the display section. They should 
correspond to the actual values of the window. If they don't then "it 
will never work".

Making sure that the divider line's "shape" remains correct on changing 
the size of the window would be the next thing to look at.

Dirk G1TLH



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20151230/7c4941ca/attachment.html>


More information about the Dxspider-support mailing list