+2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
+
+ * tuiRegs.c (tuiDisplayRegistersFrom): Call touchwin.
+ (_tuiRegisterFormat): Reduce size of format result.
+
2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* tuiGeneralWin.c (boxWin): Use the tui configuration variables.
makeWindow (dataItemWin, DONT_BOX_WINDOW);
scrollok (dataItemWin->handle, FALSE);
}
+ touchwin (dataItemWin->handle);
+
/*
** Get the printable representation of the register
** and display it
char *name;
struct cleanup *cleanups;
char *p;
+ int pos;
name = REGISTER_NAME (regNum);
if (name == 0)
do_registers_info (regNum, 0);
/* Save formatted output in the buffer. */
- strncpy (buf, tui_file_get_strbuf (stream), bufLen);
+ p = tui_file_get_strbuf (stream);
+ pos = 0;
+ while (*p && *p == *name++ && bufLen)
+ {
+ *buf++ = *p++;
+ bufLen--;
+ pos++;
+ }
+ while (*p == ' ')
+ p++;
+ while (pos < 8 && bufLen)
+ {
+ *buf++ = ' ';
+ bufLen--;
+ pos++;
+ }
+ strncpy (buf, p, bufLen);
/* Remove the possible \n. */
p = strchr (buf, '\n');