CHANGED: added the correct installation instructions to the README file.

REMOVED:        removed the usage guidelines from te README file. This information
                were redundant because its also contained in the manpage.
FIXED:          on FreeBSD the setting of MaxLen to 'auto' had no effect because the
                output of 'stty -a' which I use in note to determine the actual
                size of the terminal, is different from that on linux.
ADDED:          topics can now be abbreviated in interactive mode, which
                avoids typing. abbreviation works only if an explicit
                match could be found, otherwise the available topics that
                matches will be suggested.
This commit is contained in:
TLINDEN
2012-02-10 20:28:25 +01:00
parent 3f3206e506
commit 6c4ca1167c
20 changed files with 175 additions and 617 deletions

View File

@@ -1,2 +0,0 @@
/note/1.10/Sat Aug 19 13:38:33 2000//
D

View File

@@ -1 +0,0 @@
NOTE/bin

View File

@@ -1 +0,0 @@
zarahg@cvs.htnews.sourceforge.net:/cvsroot/htnews

View File

@@ -126,7 +126,7 @@ $TIME_COLOR = "blue";
$TOPIC_COLOR = "bold";
$TOPIC = 1;
$TopicSep = '/';
$version = "1.2.0";
$version = "1.2.1";
if ($TOPIC) {
$CurDepth = 1; # the current depth inside the topic "directory" structure...
}
@@ -916,6 +916,10 @@ sub determine_width {
if ($wide =~ /columns (\d+?);/) {
$maxlen = $1 - 33; # (33 = timestamp + borders)
}
elsif ($wide =~ /; (\d+?) columns;/) {
# bsd
$maxlen = $1 - 33; # (33 = timestamp + borders)
}
else {
# stty didn't work
$maxlen = 80 - 33;
@@ -932,6 +936,10 @@ sub clear {
if ($height =~ /rows (\d+?);/) {
$hoch = $1;
}
elsif ($height =~ /; (\d+?) rows;/) {
# bsd
$hoch = $1;
}
};
if (!$hoch) {
# stty didn't work
@@ -1120,7 +1128,27 @@ sub interactive {
&list;
}
else {
print "\nunknown command!\n";
# try incomplete match
my @matches;
foreach my $topic (keys %TP) {
if ($topic =~ /^$char/) {
push @matches, $topic;
}
}
my $nm = scalar @matches;
if ($nm == 1) {
# match on one incomplete topic, use this
$LastTopic[$CurDepth] = $CurTopic;
$CurTopic = $matches[0];
$CurDepth++;
&list;
}
elsif ($nm > 1) {
print "available topics: " . join( "," , @matches) . "\n";
}
else {
print "\nunknown command!\n";
}
}
undef $unchar;
}
@@ -1130,7 +1158,7 @@ sub interactive {
sub usage
{
print qq~This is the program note $version by Thomas Linden (c) 1999-2000.
print qq~This is the program note $version by Thomas Linden (c) 1999-2003.
It comes with absolutely NO WARRANTY. It is distributed under the
terms of the GNU General Public License. Use it at your own risk :-)