Commit 81bcc028 authored by Colin Tuckley's avatar Colin Tuckley Committed by Christoph Berg

Import Debian changes 1.2.4.1-1

tlf (1.2.4.1-1) unstable; urgency=medium

  * New upstream release.
  * Bump Standards Version to 3.9.8.
parents dfefc61d 2599b3ae
2016-04-28 Thomas Beierlein <tomjbe@gentoo.org>
* src/addmult.c: fix possible buffer overflows due to strncpy
2016-03-25 Thomas Beierlein <tomjbe@gentoo.org>
* src/bandmap.c: respect 'S'kip not dupes setting for bandmap
* src/addpfx.c: fix possible segmentation fault Do only remember MAX_PFX_LEN
chars from prefix (atm 5). As prefix regognition is not perfect we get
sometimes longer prefix signatures which led to segfaults.
2016-03-06 Thomas Beierlein <tb@forth-ev.de>
* Makefile.am: autoconf needs some more hints to find our macros
2016-03-04 Thomas Beierlein <tomjbe@gentoo.org>
* src/callinput.c: allow BMAUTOGRAB also in Run mode
* src/callinput.c: update run/s&p mode display after alt/ctrl-g
2016-03-03 Thomas Beierlein <tomjbe@gentoo.org>
* src/bandmap.c, src/bandmap.h, src/callinput.c: Implement BMAUTOGRAB If set
callinput field will automatically grab an active spot from teh bandmap if
TRX frequency is near spot frequency. Works only in S&P mode.
2016-02-10 Thomas Beierlein <tomjbe@gentoo.org>
* src/callinput.c: change autoadd triggering Former version had difficulties
to distinct between callsigns entered by the operator and callsigns grabbed
from bandmap. Now 'freqstore' remembers the actual QRG as soon as the
operator enters any chars into the call input field. That frequency is used
to detect QRG changes (tuning away). In any other case (e.g. callsign grabbed
from bandmap) 'freqstore' stays 0.
2016-02-09 Thomas Beierlein <tomjbe@gentoo.org>
* src/background_process.c, src/callinput.c, src/main.c, src/parse_logcfg.c:
Move AUTOGRAB function to callinput()
2016-02-08 Thomas Beierlein <tomjbe@gentoo.org>
* src/addspot.c, src/addspot.h: Refactor code to add a spot to bandmap -
Split out the code to format a fake DX spot, add it to the own spot list and
send it to other stations on the LAN.
* tlf.1.in: Add description to man page
2016-02-05 Ervin Hegedus <airween@gmail.com>
* src/background_process.c, src/main.c, src/parse_logcfg.c: Improve new
BMAUTOADD feature
2016-01-26 Thomas Beierlein <tomjbe@gentoo.org>
* src/ui_utils.c, tlf.1.in: Add some warning to lookup_keys() If some
special key combinations (Alt/Ctrl-PgUp/PgDown) do not work on the terminal
give a message to the user and suggest using ':cqd' Add that to the man page
also
2016-01-25 Nate Bargmann <n0nb@n0nb.us>
* src/bandmap.c: Initialize dupe value when a new spot is created Checking
with Valgrind memcheck generated in the report that, "Conditional jump or
move depends on uninitialised value(s)" in bmdata_write_file (bandmap.c:134).
The result is that various values could be written for the dupe value in
.bmdata.dat. Fixed by setting the dupe variable to 0 in bandmap_addspot().
This variable is only used in bandmap_show() and is never stored back into
the allspots GList.
* src/main.c: Make sure that rig control is closed properly on exit If
Hamlib is enabled in the build, close the rig port and release the rig
instance on exit.
2016-01-24 Thomas Beierlein <tomjbe@gentoo.org>
* src/callinput.c, src/main.c, src/ui_utils.c, src/ui_utils.h: determine key
codes for extended keys during startup
2016-01-23 Nate Bargmann <n0nb@n0nb.us>
* src/changepars.c: Combine EXIT and QUIT stanzas The case stanzas for EXIT
and QUIT were identical so combine them.
* src/sockserv.c: Use memmove() for overlapping strings. Checking Tlf with
Valgrind showed that memcpy() was assigning a string back onto itself. The
Glibc documentation says doing so will result in undefined behavior and
recommends using memmove() instead.
* doc/keynames.txt, src/callinput.c: Use keyname() to test for Ctrl/Alt
PageUp/Down keys Testing has shown that the ordinal values for these
extended keys are defined in the terminfo database and vary across systems.
Use the ncurses keyname() function along with strcmp() to determine the keys
based on their names which appears to be consistent across the systems
tested.
2016-01-21 Nate Bargmann <n0nb@n0nb.us>
* src/callinput.c, tlf.1.in: Add Alt-PageUp/PageDown keys for Auto_CQ delay
Some terminals consume the Ctl-PageUp/PageDown keys (Xfce Terminal is one).
Add Alt-PageUp/PageDown as alternatives for increasing or decreasing the
Auto_CQ pause delay time.
2016-01-20 Nate Bargmann <n0nb@n0nb.us>
* src/splitscreen.c: Ensure keypad is called when exiting packet screen When
the packet screen is opened, keypad(entwin, TRUE) is called on the entwin
window. When set_term(mainscreen) was called, the keypad was not being
redirected back to stdscr. This should now be fixed and the arrow keys
respond as expected in the call input field.
* src/main.c: Don't call obsolete crmode() function Ncurses documentation
advises that crmode() should not be used. In curses.h it is a macro that
calls cbreak(), so call cbreak() instead for clarity.
2016-01-17 Nate Bargmann <n0nb@n0nb.us>
* src/getexchange.c: Merge F11 processing with other F keys The old code had
a skip in the numbering of the F keys jumping from 138 for F10 to 140 for
F11. As Ncurses now assigns sequential values using the KEY_F(n) = KEY_F(0)
+ n macro, this special handling is no longer necessary.
2016-01-12 Nate Bargmann <n0nb@n0nb.us>
* src/audio.c, src/autocq.c, src/calledit.c, src/callinput.c,
src/changefreq.c, src/changepars.c, src/edit_last.c, src/getexchange.c,
src/keyer.c, src/main.c, src/messagechange.c, src/qtcwin.c, src/showpxmap.c,
src/tlf_curses.h, src/ui_utils.c, tlf.1.in: Process input keystrokes using
keypad() Ncurses provides the keypad() function that maps most escaped key
codes to named constants found in curses.h. The onechar() function has been
reworked to minimize the amount of key escapes that need to be caught. Those
that are caught are assigned values to match the Ncurses declared constants.
Keys were tested on the Linux console, and the following X11 terminal
emulators, Xfce Terminal, Gnome Terminal, Xterm, and Qterm. Update the
tested constants to match the Ncurses defined constants in the rest of the
sort where key_get() and key_poll() are called. Ncurses will honor the value
of the environment variable ESCDELAY but to avoid the users having to set it,
use the set_escdelay() function to set the delay to 25 mS (default is 1000 mS
when unset) when the environment variable is unset. Should that be too
short, users can set it via the usual method, i.e. 'export ESCDELAY=125'
would set a delay of 125 mS.
2016-01-08 Nate Bargmann <n0nb@n0nb.us>
* doc/keynames.txt: Add keynames.txt Document the decimal value and name
string as returned by keyname() and accepted by key_defined() for Ncurses by
default. Keystrokes are processed from the various codes as shown by
'showkey -a' and escaped sequences are assigned to values corresponding to
the values and names in this file.
2016-01-02 Ervin Hegedus <airween@gmail.com>
* src/fldigixmlrpc.c: Fixed hamlib-related variable compile error
......
ACLOCAL_AMFLAGS = -I macros
SUBDIRS = doc rules src share scripts
CLEANFILES = *~
......
......@@ -356,6 +356,7 @@ target_alias = @target_alias@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
ACLOCAL_AMFLAGS = -I macros
SUBDIRS = doc rules src share scripts
CLEANFILES = *~
man_MANS = tlf.1
......
tlf-1.2.4.1
===========
Bug fixes:
- Fix a possible buffer overflow in addmult2 due to strncpy
tlf-1.2.4
=========
Maintenance and bugfix release.
New features since tlf-1.2.3:
- Switch hardcoded keyboard handling which supported only xterm, linux
terminal and rxvt to use of ncruses keypad(). That way other terminal
settings should be supported as well (Tnx to Nate N0NB for the work).
- Extend bandmap functionality. See man page for details
(tnx to Ervin HA2OS).
* Setting BMAUTOADD in logcfg.dat simplify the adding of heard stations
to the bandmap list. Just type in the call and as soon as you turn of
to another frequency the call gets added to the bandmap (similar
to Ctl-A).
* If BMAUTOGRAB is set in logcfg.dat Tlf will automatically grab a
call from the bandmap list and put it in the call input field if
you tune in next to the station. You can just start working it
in S&P by pressing ENTER.
Bug fixes:
- Cleanup some valgrind warnng about possible memory leaks.
- Fix autoconf settings for new lookup of ncurses include files
- Fix a segmentation fault if we have unexpected long call sign prefixes
tlf-1.2.3
=========
Maintenance and bugfix release.
......
......@@ -2,7 +2,7 @@
# Attempt to guess a canonical system name.
# Copyright 1992-2015 Free Software Foundation, Inc.
timestamp='2015-07-03'
timestamp='2015-12-14'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
......@@ -249,6 +249,9 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
*:MirBSD:*:*)
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
exit ;;
*:Sortix:*:*)
echo ${UNAME_MACHINE}-unknown-sortix
exit ;;
alpha:OSF1:*:*)
case $UNAME_RELEASE in
*4.0)
......@@ -962,6 +965,9 @@ EOF
ia64:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
k1om:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
m32r*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
exit ;;
......@@ -1128,7 +1134,7 @@ EOF
# uname -m prints for DJGPP always 'pc', but it prints nothing about
# the processor, so we play safe by assuming i586.
# Note: whatever this is, it MUST be the same as what config.sub
# prints for the "djgpp" host, or else GDB configury will decide that
# prints for the "djgpp" host, or else GDB configure will decide that
# this is a cross-build.
echo i586-pc-msdosdjgpp
exit ;;
......@@ -1398,6 +1404,9 @@ EOF
x86_64:VMkernel:*:*)
echo ${UNAME_MACHINE}-unknown-esx
exit ;;
amd64:Isilon\ OneFS:*:*)
echo x86_64-unknown-onefs
exit ;;
esac
cat >&2 <<EOF
......
......@@ -2,7 +2,7 @@
# Configuration validation subroutine script.
# Copyright 1992-2015 Free Software Foundation, Inc.
timestamp='2015-07-28'
timestamp='2015-12-14'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
......@@ -53,8 +53,7 @@ timestamp='2015-07-28'
me=`echo "$0" | sed -e 's,.*/,,'`
usage="\
Usage: $0 [OPTION] CPU-MFR-OPSYS
$0 [OPTION] ALIAS
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
Canonicalize a configuration name.
......@@ -306,7 +305,7 @@ case $basic_machine in
| riscv32 | riscv64 \
| rl78 | rx \
| score \
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
......@@ -521,7 +520,7 @@ case $basic_machine in
basic_machine=i386-pc
os=-aros
;;
asmjs)
asmjs)
basic_machine=asmjs-unknown
;;
aux)
......@@ -1397,7 +1396,7 @@ case $os in
| -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
| -sym* | -kopensolaris* | -plan9* \
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
| -aos* | -aros* | -cloudabi* \
| -aos* | -aros* | -cloudabi* | -sortix* \
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
......@@ -1417,7 +1416,8 @@ case $os in
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
| -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
| -onefs* | -tirtos*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
......
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for Tlf 1.2.3.
# Generated by GNU Autoconf 2.69 for Tlf 1.2.4.1.
#
# Report bugs to <tlf-devel@nongnu.org>.
#
......@@ -580,8 +580,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='Tlf'
PACKAGE_TARNAME='tlf'
PACKAGE_VERSION='1.2.3'
PACKAGE_STRING='Tlf 1.2.3'
PACKAGE_VERSION='1.2.4.1'
PACKAGE_STRING='Tlf 1.2.4.1'
PACKAGE_BUGREPORT='tlf-devel@nongnu.org'
PACKAGE_URL='https://github.com/Tlf/tlf'
......@@ -1308,7 +1308,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures Tlf 1.2.3 to adapt to many kinds of systems.
\`configure' configures Tlf 1.2.4.1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
......@@ -1378,7 +1378,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of Tlf 1.2.3:";;
short | recursive ) echo "Configuration of Tlf 1.2.4.1:";;
esac
cat <<\_ACEOF
......@@ -1492,7 +1492,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
Tlf configure 1.2.3
Tlf configure 1.2.4.1
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
......@@ -1915,7 +1915,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Tlf $as_me 1.2.3, which was
It was created by Tlf $as_me 1.2.4.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
......@@ -2778,7 +2778,7 @@ fi
# Define the identity of the package.
PACKAGE='tlf'
VERSION='1.2.3'
VERSION='1.2.4.1'
cat >>confdefs.h <<_ACEOF
......@@ -7574,7 +7574,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by Tlf $as_me 1.2.3, which was
This file was extended by Tlf $as_me 1.2.4.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
......@@ -7641,7 +7641,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
Tlf config.status 1.2.3
Tlf config.status 1.2.4.1
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
......
# Process this file with autoconf to produce a configure script.
AC_INIT([Tlf],
[1.2.3],
[1.2.4.1],
[tlf-devel@nongnu.org],
[tlf],
[https://github.com/Tlf/tlf])
......
tlf (1.2.4.1-1) unstable; urgency=medium
* New upstream release.
* Bump Standards Version to 3.9.8.
-- Colin Tuckley <colint@debian.org> Tue, 10 May 2016 19:39:40 +0100
tlf (1.2.3-1) unstable; urgency=medium
* New upstream release.
......
......@@ -3,8 +3,8 @@ Section: hamradio
Priority: extra
Maintainer: Debian Hamradio Maintainers <debian-hams@lists.debian.org>
Uploaders: John T. Nogatch <jnogatch@gmail.com>, Colin Tuckley <colint@debian.org>
Build-Depends: debhelper (>= 9), pkg-config, autotools-dev, libhamlib-dev, libncurses5-dev, libglib2.0-dev
Standards-Version: 3.9.7
Build-Depends: debhelper (>= 9), pkg-config, autotools-dev, libhamlib-dev, libncurses5-dev, libglib2.0-dev, dh-autoreconf
Standards-Version: 3.9.8
Homepage: http://tlf.github.io/
#Vcs-Git: git://git.debian.org/collab-maint/tlf.git
#Vcs-Browser: http://git.debian.org/?p=collab-maint/tlf.git;a=summary
......
......@@ -2,7 +2,7 @@ Fix spelling errors
Colin Tuckley <colint@debian.org>
--- a/tlf.1.in
+++ b/tlf.1.in
@@ -1016,8 +1016,8 @@
@@ -1070,8 +1070,8 @@
.
.TP
.BI POWERMULT= power_multiplier
......@@ -13,7 +13,7 @@ Colin Tuckley <colint@debian.org>
here.
.IP
\fBNB\fR: The type of
@@ -1236,7 +1236,7 @@
@@ -1290,7 +1290,7 @@
.
.TP
.B 2EU3DX_POINTS
......@@ -22,3 +22,12 @@ Colin Tuckley <colint@debian.org>
.B MY_CONTINENT_POINTS
and
.B DX_POINTS
@@ -1535,7 +1535,7 @@
.TP
.B BMAUTOADD
If set, with \fBRADIO_CONTROL\fR and \fBBANDMAP\fR (mandatory) options, Tlf will add the callsign from
-callsign field, if its lenght is 3 character at least. Use 'S'kip dupes in
+callsign field, if its length is 3 character at least. Use 'S'kip dupes in
BANDMAP settings to control if it should also grab dupes.
.
.SH FILES
......@@ -19,4 +19,4 @@ override_dh_auto_configure:
dh_auto_configure -- $(configure_flags)
%:
dh $@
dh $@ --with autoreconf
......@@ -146,7 +146,7 @@ int addmult2(void)
// --------------------------- arrlss ------------------------------------
if (arrlss == 1) {
strncpy(ssexchange, lan_logline + 54, 20);
g_strlcpy(ssexchange, lan_logline + 54, 21);
/* check all possible mults for match and remember the longest one */
for (i = 0; i < mults_possible->len; i++) {
......@@ -167,14 +167,14 @@ int addmult2(void)
// --------------------wysiwyg----------------
if (wysiwyg_once == 1) {
strncpy(stripped_comment, lan_logline + 54, 14);
g_strlcpy(stripped_comment, lan_logline + 54, 15);
g_strchomp(stripped_comment);
shownewmult = remember_multi(stripped_comment, bandinx, ALL_BAND);
}
if (wysiwyg_multi == 1) {
strncpy(stripped_comment, lan_logline + 54, 14);
g_strlcpy(stripped_comment, lan_logline + 54, 15);
g_strchomp(stripped_comment);
shownewmult = remember_multi(stripped_comment, bandinx, PER_BAND);
......
......@@ -26,15 +26,17 @@
#include <string.h>
#include <glib.h>
#include "tlf.h"
#define MAX_PFX_LEN 5
int nr_of_px = 0;
int nr_of_px_ab = 0;
struct {
char pfx[6];
char pfx[MAX_PFX_LEN + 1];
int bands;
} prefixes_worked[MAX_CALLS];
......@@ -69,7 +71,7 @@ int add_pfx(char *pxstr)
if (found != 1) {
/* new pfx */
strcpy(prefixes_worked[nr_of_px].pfx, pxstr);
g_strlcpy(prefixes_worked[nr_of_px].pfx, pxstr, MAX_PFX_LEN+1);
prefixes_worked[nr_of_px].bands |= inxes[bandinx];
nr_of_px++;
nr_of_px_ab++;
......
/*
* Tlf - contest logging program for amateur radio operators
* Copyright (C) 2001-2002-2003 Rein Couperus <pa0rct@amsat.org>
* 2010-2011 Thomas Beierlein <tb@forth-ev.de>
* 2010-2016 Thomas Beierlein <tb@forth-ev.de>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -38,18 +38,43 @@
#include "tlf_curses.h"
/** add call to list of spots
*
* format a fake DX spot from call and frequency add it to the spot list
* and send it to other stations in the LAN
*/
void add_to_spots(char *call, float freq) {
extern int lanspotflg;
extern struct tm *time_ptr;
extern char thisnode;
char spotline[160];
char spottime[6];
sprintf(spotline, "DX de TLF-%c: %9.3f %s", thisnode, freq, call);
strcat(spotline, " ");
get_time();
strftime(spottime, sizeof(spottime), "%H%MZ", time_ptr);
strcpy(spotline + 70, spottime);
strcat(spotline, "\n\n");
send_lan_message(TLFSPOT, spotline);
lanspotflg = 1;
addtext(spotline);
lanspotflg = 0;
}
int addspot(void)
{
extern float freq;
extern char hiscall[];
extern int trx_control;
extern int lanspotflg;
extern struct tm *time_ptr;
extern char thisnode;
char spotline[160];
char frequency[8];
char spottime[6];
if (strlen(hiscall) < 3)
return(0);
......@@ -65,21 +90,8 @@ int addspot(void)
freq = atof(frequency);
}
sprintf(spotline, "DX de TLF-%c: %9.3f %s", thisnode, freq, hiscall);
strcat(spotline, " ");
add_to_spots(hiscall, freq);
get_time();
strftime(spottime, sizeof(spottime), "%H%MZ", time_ptr);
strcpy(spotline + 70, spottime);
strcat(spotline, "\n\n");
send_lan_message(TLFSPOT, spotline);
lanspotflg = 1;
addtext(spotline);
lanspotflg = 0;
spotline[0] = '\0';
hiscall[0] = '\0';
return (0);
......
......@@ -21,6 +21,7 @@
#ifndef ADDSPOT_H
#define ADDSPOT_H
void add_to_spots(char *call, float freq);
int addspot(void);
#endif /* ADDSPOT_H */
......@@ -476,7 +476,7 @@ int panscan(void)
make_bar(5 + j, 20, 20, (int) testvalue, PAN_BAR);
key = key_poll();
if (key == 27 || key == '\n')
if (key == 27 || key == '\n' || key == KEY_ENTER)
break;
} // end for
......@@ -577,7 +577,7 @@ int nbscan(void)
make_bar(5 + j, 20, 20, (int) testvalue, SPOT_BAR);
key = key_poll();
if (key == 27 || key == '\n')
if (key == 27 || key == '\n' || key == KEY_ENTER)
break;
} // end for
......@@ -651,6 +651,7 @@ int testaudio()
scanmenu();
break;
// <Escape>
case 27:
runnit = 0;
}
......@@ -729,53 +730,55 @@ void record(void)
key = key_poll();
/* Look for F1-F12, s|S, c|C, 1-4 */
switch (key) {
case 129:
/* Record voice keyer messages, F1-F12, s|S, c|C. */
case KEY_F(1):
do_record(0);
runnit = 0;
break;
case 130:
case KEY_F(2):
do_record(1);
runnit = 0;
break;
case 131:
case KEY_F(3):
do_record(2);
runnit = 0;
break;
case 132:
case KEY_F(4):
do_record(3);
runnit = 0;
break;
case 133:
case KEY_F(5):
do_record(4);
runnit = 0;
break;
case 134:
case KEY_F(6):
do_record(5);
runnit = 0;
break;
case 135:
case KEY_F(7):
do_record(6);
runnit = 0;
break;
case 136:
case KEY_F(8):
do_record(7);
runnit = 0;
break;
case 137:
case KEY_F(9):
do_record(8);
runnit = 0;
break;
case 138:
case KEY_F(10):
do_record(9);
runnit = 0;
break;
case 140:
case KEY_F(11):
do_record(10);
runnit = 0;
break;
case 141:
case KEY_F(12):
do_record(11);
runnit = 0;
break;
......@@ -789,6 +792,10 @@ void record(void)
do_record(13);
runnit = 0;
break;
/* Contest recording and playback. */
// Start contest recording.
case '1':
rc = system("echo " " > ~/.VRlock");
......@@ -800,6 +807,8 @@ void record(void)
sleep(1);
runnit = 0;
break;
// Stop contest recording.
case '2':
mvprintw(15, 20, "Contest recording disabled...");
refreshp();
......@@ -808,6 +817,8 @@ void record(void)
rc = system("pkill -f soundlogs > /dev/null 2> /dev/null ");
runnit = 0;
break;
// List contest recordings.
case '3':
sounddir = opendir("$HOME/tlf/soundlogs/"); // (W9WI)
......@@ -840,8 +851,8 @@ void record(void)
}
closedir(sounddir);
// Play back contest recording.
case '4':
mvprintw(15, 20, "Play back file (ddhhmmxx): ");
refreshp();
......
......@@ -115,6 +115,7 @@ int auto_cq(void)
attron(modify_attr(COLOR_PAIR(NORMCOLOR)));
// Promote lower case letters to uppercase.
if (letter > 96 && letter < 123)
letter -= 32;
......
......@@ -24,6 +24,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <math.h>
#include "bandmap.h"