John Zaitseff
2612eddf3d
Add functions prepstr(), pr_left(), pr_center() and pr_right()
...
These functions allow multiple lines to be printed left-aligned, centered
or right-aligned, with automatic line-wrapping where needed.
2011-08-12 14:28:15 +10:00
John Zaitseff
3984468894
Handle KEY_RESIZE events (where defined) in a simple manner
...
Unfortunately, the implementation of Curses (even Ncurses) requires that
to truely handle resizing, one must destroy and recreate every window
(and, of course, repaint it)--a lot of work that is not done at this
time.
2011-08-10 01:27:11 +10:00
John Zaitseff
738ffcd69a
Block SIGINT, SIGTERM and SIGQUIT when in the signal handler
2011-08-10 00:30:38 +10:00
John Zaitseff
040e1a5ad6
Rework the signal handler
...
Rework the signal handler to be somewhat more unsafe, but conceptually
cleaner, in operation. It now ends the use of Curses, then reraises the
signal. Remove almost all references to abort_game.
2011-08-09 23:20:56 +10:00
John Zaitseff
5f995f1d36
Move the initialisation of the game title into its own function
2011-08-09 13:11:22 +10:00
John Zaitseff
8a2bc51f28
Rearrange function prototypes to match the order in the source file
2011-08-09 13:06:21 +10:00
John Zaitseff
4d133cf662
Rework the definition of USE_UTF8_GAME_FILE a little
2011-08-09 12:27:56 +10:00
John Zaitseff
bbdae69de4
Add a signal handler for SIGINT and SIGTERM
...
Add a signal handler for SIGINT and SIGTERM, as well as sprinklings of
checks to abort_game. Although Ncurses DOES define handlers for SIGINT
and SIGTERM, they do not always seem to work correctly under many
operating systems.
2011-08-08 20:47:52 +10:00
John Zaitseff
91eb4d65d8
Add some TODO notes to NEWS
2011-08-08 12:33:49 +10:00
John Zaitseff
2401bea19c
Document the need for GPerf, and the --disable-nls configure option
2011-08-08 12:33:25 +10:00
John Zaitseff
32ed55a0cd
Convert strings to UTF-8 if possible during file save and load
2011-08-08 11:15:44 +10:00
John Zaitseff
1e7c6c098a
Add checks for the C.UTF-8 (C.utf8) locale for adding a currency symbol
2011-08-08 10:21:24 +10:00
John Zaitseff
601678313d
As much as I don't like it, change the help string to American spelling
2011-08-01 20:52:40 +10:00
John Zaitseff
ee6e48fd45
Add a README file to the po directory
2011-08-01 20:35:16 +10:00
John Zaitseff
c7e1f6096f
Replace PACKAGE_NAME with "Star Traders"
...
The gettext utilities don't like C macros in gettext() invocations, so
replace each occurrence of PACKAGE_NAME with "Star Traders".
2011-08-01 19:49:16 +10:00
John Zaitseff
1ee27fda20
Minor modifications to allow the first pass to compile!
2011-08-01 19:43:55 +10:00
John Zaitseff
9251ca0463
First pass at adding _() and N_() to allow string translation
2011-08-01 19:30:19 +10:00
John Zaitseff
36b1a13254
Add languages currently enabled; add source files to internationalise
2011-08-01 18:59:54 +10:00
John Zaitseff
686b3b0e0e
Rearrange order of linked libraries; move definition of LOCALEDIR
2011-08-01 18:59:11 +10:00
John Zaitseff
378b7e64b0
Add preliminary support for GNU gettext internationalisation
2011-08-01 18:17:02 +10:00
John Zaitseff
3167306af4
Start preparing for version 7.2
...
In this version, hopefully, internationalisation and multibyte strings
will be handled correctly.
2011-08-01 15:10:17 +10:00
John Zaitseff
e08b207a83
Update all auto-generated files
...
The auto-generated files are created by running ./build-aux/bootstrap
with Gnulib as at commit fb733077fcd97a36e1ffdb292387943df8e1b9b4 (with a
date stamp of Mon Jul 25 18:29:59 2011 +0200), Autoconf 2.68 and Automake
1.11.1.
2011-07-29 12:41:43 +10:00
John Zaitseff
f7bf13a7bb
Merge updated files from master into with-autogenerated
2011-07-29 12:33:08 +10:00
John Zaitseff
9599707f67
Add information about version 7.1 of Star Traders
2011-07-29 12:17:16 +10:00
John Zaitseff
d1d7716667
Update ax_with_curses.m4 to latest version from the Autoconf Archive
2011-07-29 11:51:21 +10:00
John Zaitseff
6afcaa0532
Correct a bug in the AC_DEFINE wording
2011-07-28 22:51:40 +10:00
John Zaitseff
d4e8ee09e6
Add the word "working" to some checks
2011-07-28 22:33:24 +10:00
John Zaitseff
880a63ee95
Define a check for <ncurses.h> under NcursesW, as used in FreeBSD
2011-07-28 22:29:55 +10:00
John Zaitseff
b16a785f3e
Add _XOPEN_SOURCE_EXTENDED for parts of the compile and link checks
...
Older versions of NcursesW require _XOPEN_SOURCE_EXTENDED to be defined
to access the wide-character interfaces.
2011-07-28 22:21:52 +10:00
John Zaitseff
48e8bbba93
Complete rewrite of the M4 macro that checks for Curses
2011-07-28 21:19:33 +10:00
John Zaitseff
6532524426
Ignore m4/largefile.m4
2011-07-26 21:23:42 +10:00
John Zaitseff
c0ce8c6770
Replace the check for a C99 compiler with one that works... I hope!
2011-07-26 21:18:12 +10:00
John Zaitseff
b68da501fd
Add an explicit check for a C99 compiler
...
We use C99 features quite extensively in the source code.
2011-07-26 21:13:12 +10:00
John Zaitseff
8240043880
Move <stdio.h> to appear before <stdlib.h>
...
This is required on some systems, such as Darwin (MacOS X).
2011-07-26 20:40:33 +10:00
John Zaitseff
6a8e0432e8
Move AC_CONFIG_HEADERS macro to the top of the file
...
The top of the file is where the macro should have been defined in the
first place.
2011-07-26 19:57:13 +10:00
John Zaitseff
aa42dca9c4
Remove m4/gnulib-tool.m4, not distributed as part of Star Traders
2011-07-26 14:08:11 +10:00
John Zaitseff
b730dc64df
Rerun the bootstrap script
...
The same versions of Gnulib, Autoconf and Automake are used as in commit
c7f2343052
(Mon Jul 25 20:10:32 2011 +1000).
2011-07-25 21:12:44 +10:00
John Zaitseff
1208576172
Merge updated automake files from master into with-autogenerated
2011-07-25 21:05:40 +10:00
John Zaitseff
d65178e315
Move EXTRA_DIST to the main Makefile.am
...
Apparently Autoconf doesn't like EXTRA_DIST in build-aux/Makefile.am: it
just seems to ignore it. Try adding EXTRA_DIST to the main Makefile.am
instead.
2011-07-25 21:04:19 +10:00
John Zaitseff
793474d9fe
Merge updated automake files from master into with-autogenerated
2011-07-25 20:53:05 +10:00
John Zaitseff
8fc14264a5
Add more files that need to be listed explicitly for distribution
2011-07-25 20:51:48 +10:00
John Zaitseff
8150840b24
Merge updated automake files from master into with-autogenerated
2011-07-25 20:39:49 +10:00
John Zaitseff
788f2da986
Add some README files, plus bootstrap, to Makefile.am EXTRA_DIST
2011-07-25 20:36:31 +10:00
John Zaitseff
9ea959a9f2
Ignore files generated at build (compile) time
2011-07-25 20:15:24 +10:00
John Zaitseff
c7f2343052
Add all auto-generated files
...
The auto-generated files are created by running ./build-aux/bootstrap
with Gnulib as at commit d72683055ea46253d8eb8f89341eff5414ae6ca0 (with a
date stamp of Sun Jul 24 23:37:17 2011 +0200), Autoconf 2.68 and Automake
1.11.1.
2011-07-25 20:10:32 +10:00
John Zaitseff
e0b75aa783
Indicate the release date: today!
2011-07-25 17:02:16 +10:00
John Zaitseff
e7fee29e5b
Final minor edits of various documentation files
2011-07-25 17:00:59 +10:00
John Zaitseff
a7a7c8c4e1
Finish the INSTALL file for Star Traders
2011-07-25 16:31:35 +10:00
John Zaitseff
9c926eac11
Add README files for the build-aux, lib and m4 subdirectories
2011-07-25 16:21:33 +10:00
John Zaitseff
2853dcb25a
Add a simple shell script to bootstrap the auto-generated files
2011-07-25 13:20:05 +10:00