Commit ad1dacce authored by Chris Allegretta's avatar Chris Allegretta
Browse files

PDCurses support

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@229 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
parent 4aacee66
No related merge requests found
Showing with 187 additions and 115 deletions
+187 -115
CVS changes - CVS changes -
- General
- Added PDCurses support under cygwin, which allows building
a nice stand-alone nano.exe for those poor Windows users.
Extra check in configure.in for initscr() in -lcurses (as
PDcurses has no tgetent), some #ifdef PDCURSES statements
in main().
nano 0.9.18 - 09/18/2000 nano 0.9.18 - 09/18/2000
- General - General
- Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H, - Changed _POSIX_VERSION checks in regex code to HAVE_REGEX_H,
......
This diff is collapsed.
...@@ -148,6 +148,12 @@ then ...@@ -148,6 +148,12 @@ then
AC_CHECK_LIB(curses, tgetent, CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses) AC_CHECK_LIB(curses, tgetent, CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses)
fi fi
# Fallback for PDCurses and less useful curses libs...
if eval "test x$CURSES_LIB_NAME = x"
then
AC_CHECK_LIB(curses, initscr, CURSES_LIB="-lcurses" CURSES_LIB_NAME=curses)
fi
if eval "test x$CURSES_LIB_NAME = x" if eval "test x$CURSES_LIB_NAME = x"
then then
AC_CHECK_LIB(termcap, tgetent, CURSES_LIB="-ltermcap" CURSES_LIB_NAME=termcap) AC_CHECK_LIB(termcap, tgetent, CURSES_LIB="-ltermcap" CURSES_LIB_NAME=termcap)
......
...@@ -1702,7 +1702,9 @@ int main(int argc, char *argv[]) ...@@ -1702,7 +1702,9 @@ int main(int argc, char *argv[])
int keyhandled = 0; /* Have we handled the keystroke yet? */ int keyhandled = 0; /* Have we handled the keystroke yet? */
int i; int i;
char *argv0; char *argv0;
#ifdef _POSIX_VDISABLE
struct termios term; struct termios term;
#endif
#ifdef HAVE_GETOPT_LONG #ifdef HAVE_GETOPT_LONG
int option_index = 0; int option_index = 0;
...@@ -1881,6 +1883,13 @@ int main(int argc, char *argv[]) ...@@ -1881,6 +1883,13 @@ int main(int argc, char *argv[])
window_init(); window_init();
mouse_init(); mouse_init();
#ifdef PDCURSES
/* Must have this for the arrow, et al, keys to even work in
PDCurses+cygwin under Windows */
keypad(edit, TRUE);
keypad(bottomwin, TRUE);
#endif
#ifdef DEBUG #ifdef DEBUG
fprintf(stderr, _("Main: bottom win\n")); fprintf(stderr, _("Main: bottom win\n"));
#endif #endif
...@@ -2101,6 +2110,12 @@ int main(int argc, char *argv[]) ...@@ -2101,6 +2110,12 @@ int main(int argc, char *argv[])
case 331: /* Stuff that we don't want to do squat */ case 331: /* Stuff that we don't want to do squat */
case -1: case -1:
case 410: /* Must ignore this, it gets sent when we resize */ case 410: /* Must ignore this, it gets sent when we resize */
#ifdef PDCURSES
case 541: /* ???? */
case 542: /* Control and alt in Windows *shrug* */
case 544:
#endif
break; break;
default: default:
#ifdef DEBUG #ifdef DEBUG
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2000-09-15 11:48-0400\n" "POT-Creation-Date: 2000-09-21 00:31-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -47,63 +47,63 @@ msgstr "" ...@@ -47,63 +47,63 @@ msgstr ""
msgid "File \"%s\" is a directory" msgid "File \"%s\" is a directory"
msgstr "" msgstr ""
#: files.c:235 #: files.c:236
msgid "Reading File" msgid "Reading File"
msgstr "" msgstr ""
#: files.c:248 #: files.c:249
msgid "File to insert [from ./] " msgid "File to insert [from ./] "
msgstr "" msgstr ""
#: files.c:273 files.c:297 files.c:487 nano.c:1132 #: files.c:274 files.c:298 files.c:488 nano.c:1132
msgid "Cancelled" msgid "Cancelled"
msgstr "" msgstr ""
#: files.c:319 files.c:339 files.c:352 files.c:369 files.c:375 #: files.c:320 files.c:340 files.c:353 files.c:370 files.c:376
#, c-format #, c-format
msgid "Could not open file for writing: %s" msgid "Could not open file for writing: %s"
msgstr "" msgstr ""
#: files.c:327 #: files.c:328
msgid "Could not open file: Path length exceeded." msgid "Could not open file: Path length exceeded."
msgstr "" msgstr ""
#: files.c:357 #: files.c:358
#, c-format #, c-format
msgid "Wrote >%s\n" msgid "Wrote >%s\n"
msgstr "" msgstr ""
#: files.c:384 #: files.c:385
#, c-format #, c-format
msgid "Could not close %s: %s" msgid "Could not close %s: %s"
msgstr "" msgstr ""
#. Try a rename?? #. Try a rename??
#: files.c:405 files.c:416 files.c:421 #: files.c:406 files.c:417 files.c:422
#, c-format #, c-format
msgid "Could not open %s for writing: %s" msgid "Could not open %s for writing: %s"
msgstr "" msgstr ""
#: files.c:427 #: files.c:428
#, c-format #, c-format
msgid "Could not set permissions %o on %s: %s" msgid "Could not set permissions %o on %s: %s"
msgstr "" msgstr ""
#: files.c:434 #: files.c:435
#, c-format #, c-format
msgid "Wrote %d lines" msgid "Wrote %d lines"
msgstr "" msgstr ""
#: files.c:466 #: files.c:467
msgid "File Name to write" msgid "File Name to write"
msgstr "" msgstr ""
#: files.c:471 #: files.c:472
#, c-format #, c-format
msgid "filename is %s" msgid "filename is %s"
msgstr "" msgstr ""
#: files.c:476 #: files.c:477
msgid "File exists, OVERWRITE ?" msgid "File exists, OVERWRITE ?"
msgstr "" msgstr ""
...@@ -688,39 +688,39 @@ msgstr "" ...@@ -688,39 +688,39 @@ msgstr ""
msgid "disabled" msgid "disabled"
msgstr "" msgstr ""
#: nano.c:1878 #: nano.c:1880
msgid "Main: set up windows\n" msgid "Main: set up windows\n"
msgstr "" msgstr ""
#: nano.c:1885 #: nano.c:1894
msgid "Main: bottom win\n" msgid "Main: bottom win\n"
msgstr "" msgstr ""
#: nano.c:1891 #: nano.c:1900
msgid "Main: open file\n" msgid "Main: open file\n"
msgstr "" msgstr ""
#: nano.c:1925 #: nano.c:1934
#, c-format #, c-format
msgid "I got Alt-O-%c! (%d)\n" msgid "I got Alt-O-%c! (%d)\n"
msgstr "" msgstr ""
#: nano.c:1949 #: nano.c:1958
#, c-format #, c-format
msgid "I got Alt-[-1-%c! (%d)\n" msgid "I got Alt-[-1-%c! (%d)\n"
msgstr "" msgstr ""
#: nano.c:1982 #: nano.c:1991
#, c-format #, c-format
msgid "I got Alt-[-2-%c! (%d)\n" msgid "I got Alt-[-2-%c! (%d)\n"
msgstr "" msgstr ""
#: nano.c:2030 #: nano.c:2039
#, c-format #, c-format
msgid "I got Alt-[-%c! (%d)\n" msgid "I got Alt-[-%c! (%d)\n"
msgstr "" msgstr ""
#: nano.c:2056 #: nano.c:2065
#, c-format #, c-format
msgid "I got Alt-%c! (%d)\n" msgid "I got Alt-%c! (%d)\n"
msgstr "" msgstr ""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment