diff --git a/ChangeLog b/ChangeLog index cdfc4868..2424b629 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,7 @@ CVS code - because we not longer use keypad() (see below). - Removed keypad() call because nano was not working with the keypad in many terms, which is very bad. + - Made insert key call do_insertfile(). do_toggle() - Rewrote function to allow NOHELP toggle to wotk on systems without a working resizewin(). New function window_init(). diff --git a/nano.c b/nano.c index d20c4f1e..3394731e 100644 --- a/nano.c +++ b/nano.c @@ -1949,20 +1949,28 @@ int main(int argc, char *argv[]) break; case '2': /* Alt-[-2-[0,1,3,4] = F9-F12 in many terms */ kbinput = wgetch(edit); - wgetch(edit); switch (kbinput) { case '0': kbinput = KEY_F(9); + wgetch(edit); break; case '1': kbinput = KEY_F(10); + wgetch(edit); break; case '3': kbinput = KEY_F(11); + wgetch(edit); break; case '4': kbinput = KEY_F(12); + wgetch(edit); break; + case 126: /* Hack, make insert key do something + usefile, like insert file */ + do_insertfile(); + keyhandled = 1; + break; #ifdef DEBUG default: fprintf(stderr, _("I got Alt-[-2-%c! (%d)\n"), diff --git a/po/de.gmo b/po/de.gmo index 59d6be47..54143562 100644 Binary files a/po/de.gmo and b/po/de.gmo differ diff --git a/po/de.po b/po/de.po index 00395672..ecf76862 100644 --- a/po/de.po +++ b/po/de.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: nano 0.9.14pre1\n" -"POT-Creation-Date: 2000-09-12 19:05-0400\n" +"POT-Creation-Date: 2000-09-13 10:08-0400\n" "PO-Revision-Date: 2000-07-27 11:44+0200\n" "Last-Translator: Florian König \n" "Language-Team: German \n" @@ -710,52 +710,52 @@ msgstr "Kann Gr msgid "Cannot move bottom win" msgstr "Kann unteres Fenster nicht verschieben" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Hauptprogramm: Fenster konfigurieren\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Hauptprogramm: unteres Fenster\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Hauptprogramm: Datei öffnen\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "Erhielt Alt-[-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "Erhielt Alt-%c! (%d)\n" diff --git a/po/es.gmo b/po/es.gmo index 95829cbe..56318585 100644 Binary files a/po/es.gmo and b/po/es.gmo differ diff --git a/po/es.po b/po/es.po index 46a7cbf7..7b2fca11 100644 --- a/po/es.po +++ b/po/es.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.9.17\n" -"POT-Creation-Date: 2000-09-12 19:05-0400\n" +"POT-Creation-Date: 2000-09-13 10:08-0400\n" "PO-Revision-Date: 2000-09-07 12:14+0200\n" "Last-Translator: Jordi Mallach \n" "Language-Team: Spanish \n" @@ -701,52 +701,52 @@ msgstr "No se puede cambiar el tama msgid "Cannot move bottom win" msgstr "No se puede mover la ventana inferior" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "%s habilitar/deshabilitar" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "habilitado" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "deshabilitado" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Main: configurar las ventanas\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Main: ventana inferior\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Main: abrir fichero\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "Pillé Alt-[-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "Pillé Alt-[-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "Pillé Alt-[-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "Pillé Alt-[-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "Pillé Alt-%c! (%d)\n" diff --git a/po/fi.gmo b/po/fi.gmo index 64b4f380..1d61ee5e 100644 Binary files a/po/fi.gmo and b/po/fi.gmo differ diff --git a/po/fi.po b/po/fi.po index cb7daf33..fd7c5111 100644 --- a/po/fi.po +++ b/po/fi.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: nano 0.9.11\n" -"POT-Creation-Date: 2000-09-12 19:05-0400\n" +"POT-Creation-Date: 2000-09-13 10:08-0400\n" "PO-Revision-Date: 2000-06-21 23:08+03:00\n" "Last-Translator: Pauli Virtanen \n" "Language-Team: Finnish \n" @@ -701,52 +701,52 @@ msgstr "Alaikkunan kokoa ei voi muuttaa" msgid "Cannot move bottom win" msgstr "Alaikkunaa ei voi siirtää" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Päätila: ikkunoiden asettelu\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Päätila: alaikkuna\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Päätila: avaa tiedosto\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "Vastaanotettu Alt-[-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "Vastaanotettu Alt-%c! (%d)\n" diff --git a/po/fr.po b/po/fr.po index f9e584c1..d6600760 100644 --- a/po/fr.po +++ b/po/fr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.8.9\n" -"POT-Creation-Date: 2000-09-12 19:05-0400\n" +"POT-Creation-Date: 2000-09-13 10:08-0400\n" "PO-Revision-Date: 2000-07-09 01:32+0100\n" "Last-Translator: Clement Laforet \n" "Language-Team: French \n" @@ -721,52 +721,52 @@ msgstr "Impossible de redimensionner la fen msgid "Cannot move bottom win" msgstr "Impossible de bouger la fenêtre du bas" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Main: configuration des fenêtres\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Main: fenêtre du bas\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Main: ouvrir fichier\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "J'ai reçu Alt-[-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "J'ai reçu Alt-%c! (%d)\n" diff --git a/po/id.gmo b/po/id.gmo index b3c2a972..538ea3c5 100644 Binary files a/po/id.gmo and b/po/id.gmo differ diff --git a/po/id.po b/po/id.po index 7e439832..0abd5929 100644 --- a/po/id.po +++ b/po/id.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: nano-0.9.10\n" -"POT-Creation-Date: 2000-09-12 19:05-0400\n" +"POT-Creation-Date: 2000-09-13 10:08-0400\n" "PO-Revision-Date: 2000-06-08 20:56+07:00\n" "Last-Translator: Tedi Heriyanto \n" "Language-Team: Indonesian \n" @@ -700,52 +700,52 @@ msgstr "Tidak dapat mengganti ukuran jendela bawah" msgid "Cannot move bottom win" msgstr "Tidak dapat memindah jendela bawah" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Main: menset jendela\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Main: jendela bawah\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Main: membuka file\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "Saya mendapat Alt-%c! (%d)\n" diff --git a/po/it.gmo b/po/it.gmo index b346fc30..40f4fadf 100644 Binary files a/po/it.gmo and b/po/it.gmo differ diff --git a/po/it.po b/po/it.po index c87f5fcc..a657b639 100644 --- a/po/it.po +++ b/po/it.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.8.7\n" -"POT-Creation-Date: 2000-09-12 19:05-0400\n" +"POT-Creation-Date: 2000-09-13 10:08-0400\n" "PO-Revision-Date: 2000-03-03 04:57+0100\n" "Last-Translator: Daniele Medri \n" "MIME-Version: 1.0\n" @@ -687,52 +687,52 @@ msgstr "Impossibile ridimensionare la finestra inferiore" msgid "Cannot move bottom win" msgstr "Impossibile spostare la finestra inferiore" -#: nano.c:1629 +#: nano.c:1631 #, c-format msgid "%s enable/disable" msgstr "" -#: nano.c:1641 +#: nano.c:1643 msgid "enabled" msgstr "" -#: nano.c:1642 +#: nano.c:1644 msgid "disabled" msgstr "" -#: nano.c:1870 +#: nano.c:1872 msgid "Main: set up windows\n" msgstr "Main: configura finestre\n" -#: nano.c:1877 +#: nano.c:1879 msgid "Main: bottom win\n" msgstr "Main: finestra inferiore\n" -#: nano.c:1883 +#: nano.c:1885 msgid "Main: open file\n" msgstr "Main: apri file\n" -#: nano.c:1917 +#: nano.c:1919 #, fuzzy, c-format msgid "I got Alt-O-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n" -#: nano.c:1941 +#: nano.c:1943 #, fuzzy, c-format msgid "I got Alt-[-1-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n" -#: nano.c:1966 +#: nano.c:1968 #, fuzzy, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n" -#: nano.c:2014 +#: nano.c:2016 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "Premuto Alt-[-%c! (%d)\n" -#: nano.c:2040 +#: nano.c:2042 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr "Premuto Alt-%c! (%d)\n" diff --git a/po/nano.pot b/po/nano.pot index 57e9418b..2f5125c5 100644 --- a/po/nano.pot +++ b/po/nano.pot @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2000-09-13 10:08-0400\n" +"POT-Creation-Date: 2000-09-13 10:30-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -710,17 +710,17 @@ msgstr "" msgid "I got Alt-[-1-%c! (%d)\n" msgstr "" -#: nano.c:1968 +#: nano.c:1976 #, c-format msgid "I got Alt-[-2-%c! (%d)\n" msgstr "" -#: nano.c:2016 +#: nano.c:2024 #, c-format msgid "I got Alt-[-%c! (%d)\n" msgstr "" -#: nano.c:2042 +#: nano.c:2050 #, c-format msgid "I got Alt-%c! (%d)\n" msgstr ""