aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2008-02-13 19:44:37 +0000
committerFrederic Culot <calcurse@culot.org>2008-02-13 19:44:37 +0000
commitfe5621c5472a65e0900f57ae2da61eab4b1469fd (patch)
treecdd513a85d7918f908edbc1e5171e0ebcd88e7e1
parent45199e1df924a4ffb3a481caea79891318e15c62 (diff)
downloadcalcurse-fe5621c5472a65e0900f57ae2da61eab4b1469fd.tar.gz
calcurse-fe5621c5472a65e0900f57ae2da61eab4b1469fd.zip
manpage updated
NOTESIZ shortened to be 6 characters long, as only 6 'X' are used in the glibc version of mkstemp(3). bugfix: wrong calculated len in wins_launch_external(), which lead to erroneus note file name
-rwxr-xr-xChangeLog7
-rwxr-xr-xsrc/calcurse.154
-rwxr-xr-xsrc/vars.h4
-rwxr-xr-xsrc/wins.c5
4 files changed, 50 insertions, 20 deletions
diff --git a/ChangeLog b/ChangeLog
index d7ed9f6..2469c9c 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+13 Feb 2008:
+ manpage updated
+ NOTESIZ shortened to be 6 characters long, as only 6 'X' are
+ used in the glibc version of mkstemp(3).
+ bugfix: wrong calculated len in wins_launch_external(), which
+ lead to erroneus note file name
+
11 Feb 2008:
TODO list updated
status bar updated to display the new 'N' (edit note) and '>'
diff --git a/src/calcurse.1 b/src/calcurse.1
index 1fc6d3d..c6363eb 100755
--- a/src/calcurse.1
+++ b/src/calcurse.1
@@ -1,6 +1,6 @@
-.\" $calcurse: calcurse.1,v 1.6 2007/08/19 13:04:36 culot Exp $
+.\" $calcurse: calcurse.1,v 1.7 2008/02/13 19:44:37 culot Exp $
.\"
-.\" Copyright (c) 2004-2007 Frederic Culot
+.\" Copyright (c) 2004-2008 Frederic Culot
.\"
.\" 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
@@ -18,7 +18,7 @@
.\" Boston, MA 02111-1307, USA.
.\"
.fam C
-.TH CALCURSE 1 "August 18, 2007" "Version 1.9" "Calcurse Manual"
+.TH CALCURSE 1 "February 13, 2008" "Version 2.0" "Calcurse Manual"
.SH NAME
Calcurse \- text-based organizer
.SH SYNOPSIS
@@ -121,20 +121,37 @@ time calcurse is run :
.HP 10
$HOME/.calcurse/
.br
+|___notes/
+.br
|___conf
.br
|___apts
.br
|___todo
.PP
-The \fIconf\fP file contains the user configuration. The \fIapts\fP
-file contains all of the user's appointments, and the \fItodo\fP
-file contains the todo list.
-.SH LICENCE
-Copyright (c) 2004-2007 by Frederic Culot.
+The \fInotes\fP subdirectory contains descriptions of the notes
+which are attached to appointments, events or todos. One text file is
+created per note, whose name is built using mkstemp(3) and should be
+unique, but with no relation with the corresponding item's description.
.br
-This software is released under the GNU General Public License. Please
-read the COPYING file for more information.
+The \fIconf\fP file contains the user configuration. The \fIapts\fP
+file contains all of the user's appointments and events, and the
+\fItodo\fP file contains the todo list.
+.SH ENVIRONMENT
+This section describes the environment variables that affect how
+calcurse operates.
+.TP 4
+\fBVISUAL\fP
+Specifies the external editor to use for writing notes.
+.TP 4
+\fBEDITOR\fP
+If the \fIVISUAL\fP environment variable is not set, then \fIEDITOR\fP
+will be used as the default external editor. If none of those variables
+are set, then \fI/usr/bin/vi\fP is used instead.
+.TP 4
+\fBPAGER\fP
+Specifies the default viewer to be used for reading notes. If this variable
+is not set, then \fI/usr/bin/less\fP is used.
.SH BUGS
Incorrect highlighting of items appear when using calcurse black and
white theme together with a \fB$TERM\fP variable set to
@@ -151,13 +168,18 @@ the \fB$TERM\fP variable:
.PP
If you find other bugs, please send a report to calcurse@culot.org or to the
author, below.
-.SH AUTHOR
-\fBFrederic Culot\fP <frederic@culot.org>.
.SH SEE ALSO
-ncurses(3), gettext(3)
+vi(1), less(1), ncurses(3), mkstemp(3)
.br
Calcurse home page : http://culot.org/calcurse/
.br
-Calcurse manual found in the doc/ directory of the source package, or
-at:
-http://culot.org/calcurse/manual.html
+Calcurse complete manual, translated in many languages and maintained in
+html format, can be found in the doc/ directory of the source package,
+or at: http://culot.org/calcurse/manual.html
+.SH AUTHOR
+\fBFrederic Culot\fP <frederic@culot.org>.
+.SH COPYRIGHT
+Copyright (c) 2004-2008 by Frederic Culot.
+.br
+This software is released under the GNU General Public License. Please
+read the COPYING file for more information.
diff --git a/src/vars.h b/src/vars.h
index 3cedf83..515c710 100755
--- a/src/vars.h
+++ b/src/vars.h
@@ -1,4 +1,4 @@
-/* $calcurse: vars.h,v 1.19 2007/12/30 16:27:59 culot Exp $ */
+/* $calcurse: vars.h,v 1.20 2008/02/13 19:44:37 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -53,7 +53,7 @@
#define WEEKINDAYS 7
#define STATUSHEIGHT 2
-#define NOTESIZ 10
+#define NOTESIZ 6
struct pad_s {
int width;
diff --git a/src/wins.c b/src/wins.c
index 302bb04..34da23c 100755
--- a/src/wins.c
+++ b/src/wins.c
@@ -1,4 +1,4 @@
-/* $Id: wins.c,v 1.10 2008/02/10 16:29:50 culot Exp $ */
+/* $Id: wins.c,v 1.11 2008/02/13 19:44:37 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -374,7 +374,8 @@ wins_launch_external(const char *file, const char *cmd)
char *p;
int len;
- len = strlen(file) + strlen(cmd) + 1;
+ len = strlen(file) + strlen(cmd) + 2; /* Beware of space between cmd and
+ file. */
p = (char *)malloc(sizeof(char) * len);
if (snprintf(p, len, "%s %s", cmd, file) == -1) {
free(p);