item = ct->firstItem;
i = 0;
+
+ newtTrashScreen();
+
while (*item && i < co->height) {
newtGotorc(co->top + i, co->left);
if (*item == *ct->currItem) {
VERSION=$(awk '/^%define version/ {print $3}' newt.spec)
-VERSION=0.50.21
+VERSION=0.50.22
SONAME=0.50
AC_SUBST(VERSION)
AC_SUBST(SONAME)
SLsmg_set_color(form->background);
newtClearBox(co->left, co->top, co->width, co->height);
+
for (i = 0, el = form->elements; i < form->numComps; i++, el++) {
/* the scrollbar *always* fits somewhere */
if (el->co == form->vertBar) {
if (!co->isMapped) return ;
+ newtTrashScreen();
+
if(li->flags & NEWT_FLAG_BORDER) {
if(li->isActive)
SLsmg_set_color(NEWT_COLORSET_ACTLISTBOX);
static int cursorRow, cursorCol;
static int needResize;
static int cursorOn = 1;
+static int trashScreen = 0;
static const char * defaultHelpLine =
" <Tab>/<Alt-Tab> between elements | <Space> selects | <F12> next screen"
#endif
int newtInit(void) {
- char * MonoValue, * MonoEnv = "NEWT_MONO";
+ char * MonoValue, * MonoEnv = "NEWT_MONO", * lang;
+
+ lang = getenv ("LANG");
+ if (lang && !strcasecmp (lang, "ja_JP.eucJP"))
+ trashScreen = 1;
/* use the version variable just to be sure it gets included */
strlen(version);
n += currentWindow->width + 3;
}
+ newtTrashScreen();
+
SLsmg_set_color(NEWT_COLORSET_BORDER);
SLsmg_draw_box(top - 1, left - 1, height + 2, width + 2);
SLsmg_set_char_set(0);
+ newtTrashScreen();
+
newtRefresh();
}
cursorOn = 1;
SLtt_set_cursor_visibility (cursorOn);
}
+
+void newtTrashScreen(void) {
+ if (trashScreen)
+ SLsmg_touch_screen();
+}
+
Summary: A development library for text mode user interfaces.
Name: newt
-%define version 0.50.21
+%define version 0.50.22
Version: %{version}
Release: 1
Copyright: LGPL
%endif
%changelog
+* Mon Apr 2 2001 Matt Wilson <msw@redhat.com>
+- redraw the screen in certain situations when LANG=ja_JP.eucJP to
+ prevent corrupting kanji characters
+
+* Mon Apr 2 2001 Elloit Lee <sopwith@redhat.com>
+- Allow python scripts to watch file handles
+- Fix 64-bit warnings in snackmodule
+- Misc snack.py cleanups
+- Add NEWT_FD_EXCEPT to allow watching for fd exceptions
+- In newtExitStruct, return the first file descriptor that an event occurred on
+
* Fri Mar 30 2001 Matt Wilson <msw@redhat.com>
- don't blow the stack if we push a help line that is longer than the
curret number of columns
void newtClearBox(int left, int top, int width, int height);
int newtGetKey(void);
+void newtTrashScreen(void);
struct newtComponent_struct {
/* common data */
}
SLsmg_set_color(NEWT_COLORSET_TEXTBOX);
-
+
+ newtTrashScreen();
+
for (i = 0; (i + tb->topLine) < tb->numLines && i < c->height; i++) {
newtGotorc(c->top + i, c->left);
SLsmg_write_string(tb->lines[i + tb->topLine]);