From f9b6c9b398f1fe1817302098de17ccc04492310e Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Wed, 18 Oct 2000 19:35:59 +0000 Subject: [PATCH] Fixed iris-ansi term problem git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@241 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ po/nano.pot | 34 +++++++++++++++++----------------- winio.c | 5 +++++ 3 files changed, 26 insertions(+), 17 deletions(-) diff --git a/ChangeLog b/ChangeLog index aac7119b..96d876da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,10 @@ CVS Code - toggle_init() - Added #ifdef around toggle_regex_msg to get rid of compiler warning. +- winio.c + nanogetstr() + - Added check for 343 in while loop to get rid of getting "locked" + into statusbar" bug in odd $TERMs like iris-ansi. nano 0.9.19 - 10/02/2000 - General diff --git a/po/nano.pot b/po/nano.pot index c9d0a31e..cc0cd512 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-10-03 01:46-0400\n" +"POT-Creation-Date: 2000-10-18 15:38-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -380,7 +380,7 @@ msgid "Case Sens" msgstr "" #: global.c:342 global.c:361 global.c:371 global.c:387 global.c:391 -#: global.c:397 winio.c:999 +#: global.c:397 winio.c:1004 msgid "Cancel" msgstr "" @@ -807,67 +807,67 @@ msgstr "" msgid "actual_x_from_start for xplus=%d returned %d\n" msgstr "" -#: winio.c:410 +#: winio.c:415 #, c-format msgid "input '%c' (%d)\n" msgstr "" -#: winio.c:444 +#: winio.c:449 msgid "New Buffer" msgstr "" -#: winio.c:447 +#: winio.c:452 msgid " File: ..." msgstr "" -#: winio.c:455 +#: winio.c:460 msgid "Modified" msgstr "" -#: winio.c:915 +#: winio.c:920 #, c-format msgid "Moved to (%d, %d) in edit buffer\n" msgstr "" -#: winio.c:926 +#: winio.c:931 #, c-format msgid "current->data = \"%s\"\n" msgstr "" -#: winio.c:969 +#: winio.c:974 #, c-format msgid "I got \"%s\"\n" msgstr "" -#: winio.c:994 +#: winio.c:999 msgid "Yes" msgstr "" -#: winio.c:996 +#: winio.c:1001 msgid "All" msgstr "" -#: winio.c:998 +#: winio.c:1003 msgid "No" msgstr "" -#: winio.c:1135 +#: winio.c:1140 #, c-format msgid "do_cursorpos: linepct = %f, bytepct = %f\n" msgstr "" -#: winio.c:1139 +#: winio.c:1144 msgid "line %d of %d (%.0f%%), character %d of %d (%.0f%%)" msgstr "" -#: winio.c:1267 +#: winio.c:1272 msgid "Dumping file buffer to stderr...\n" msgstr "" -#: winio.c:1269 +#: winio.c:1274 msgid "Dumping cutbuffer to stderr...\n" msgstr "" -#: winio.c:1271 +#: winio.c:1276 msgid "Dumping a buffer to stderr...\n" msgstr "" diff --git a/winio.c b/winio.c index 913915de..0bc0c63a 100644 --- a/winio.c +++ b/winio.c @@ -250,6 +250,11 @@ int nanogetstr(char *buf, char *def, shortcut s[], int slen, int start_x) xend = strlen(buf) + strlen(inputbuf); switch (kbinput) { + /* Stuff we want to equate with , ASCII 13 */ + case 343: + ungetch(13); /* Enter on iris-ansi $TERM, sometimes */ + break; + case KEY_HOME: x = x_left; blank_statusbar();