lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LYNX-DEV A small LYOptions.c patch


From: Drazen Kacar
Subject: LYNX-DEV A small LYOptions.c patch
Date: Wed, 30 Oct 1996 21:30:49 +0100 (MET)

This is a small patch in typoo class. It can be applied to Lynx 2.6 with or
without composite, since composite doesn't change LYOptions.c.

When defining entries in options screen which need to be inputed as strings,
Lynx is changing attribute mode to standout, calling the editor, changing
mode back to normal and printing some string. It could be the string that
was just entered by user or some predefined value, like 'NONE'. The problem
is that the spaces after that string stay in standout mode. Standout mode is
different on different terminals and on real text terms it will usually be
reverse video. A call to clrtoeol() at appropriate place fixes the problem.

*** LYOptions.c.orig    Wed Oct 30 20:56:40 1996
--- LYOptions.c Wed Oct 30 21:03:03 1996
***************
*** 275,280 ****
--- 275,281 ----
                                StrAllocCopy(editor, display_option);
                                addstr(display_option);
                            }
+                           clrtoeol();
                            option_statusline(VALUE_ACCEPTED);
                        }
                        break;
***************
*** 307,312 ****
--- 308,314 ----
                             *  wasn't changed. - FM
                             */
                            addstr((display && *display) ? display : "NONE");
+                           clrtoeol();
                            option_statusline(VALUE_ACCEPTED);
                            break;
                        } else if (*display_option == '\0') {
***************
*** 317,322 ****
--- 319,325 ----
                                 *  wasn't changed. - FM
                                 */
                                addstr("NONE");
+                               clrtoeol();
                                option_statusline(VALUE_ACCEPTED);
                                break;
                            }
***************
*** 340,345 ****
--- 343,349 ----
                            display = NULL;
                        }
                        addstr(display ? display : "NONE");
+                       clrtoeol();
                        if ((display == NULL && *display_option == '\0') ||
                            (display != NULL &&
                             0 == strcmp(display, display_option))) {
***************
*** 391,396 ****
--- 395,401 ----
                                StrAllocCopy(bookmark_page, display_option);
                                addstr(display_option);
                            }
+                           clrtoeol();
                            option_statusline(VALUE_ACCEPTED);
                        } else { /* anonymous */
                            option_statusline(BOOKMARK_CHANGE_DISALLOWED);
***************
*** 443,448 ****
--- 448,454 ----
                            StrAllocCopy(personal_mail_address, display_option);
                            addstr(display_option);
                        }
+                       clrtoeol();
                        option_statusline(VALUE_ACCEPTED);
                        break;
  
***************
*** 530,535 ****
--- 536,542 ----
                            StrAllocCopy(language, display_option);
                            addstr(display_option);
                        }
+                       clrtoeol();
                        option_statusline(VALUE_ACCEPTED);
                        break;
  
***************
*** 559,564 ****
--- 566,572 ----
                            StrAllocCopy(pref_charset, display_option);
                            addstr(display_option);
                        }
+                       clrtoeol();
                        option_statusline(VALUE_ACCEPTED);
                        break;
  
***************
*** 710,715 ****
--- 718,724 ----
                                StrAllocCopy(LYUserAgent, display_option);
                                addstr(display_option);
                            }
+                           clrtoeol();
                            if (LYUserAgent && *LYUserAgent &&
                                !strstr(LYUserAgent, "Lynx") &&
                                !strstr(LYUserAgent, "lynx")) {
-- 
Life is a sexually transmitted disease.

address@hidden
address@hidden
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]