mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +02:00
Mainwindows use now real curses WINDOWs, this should fix irssi with some
curseses that didn't like setscrreg() (solaris 8). git-svn-id: http://svn.irssi.org/repos/irssi/trunk@542 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
9bf99c0aa6
commit
091292e079
9 changed files with 143 additions and 130 deletions
|
|
@ -50,22 +50,22 @@ static void entry_update(void)
|
|||
len = entry->len-scrstart > COLS-promptlen ?
|
||||
COLS-promptlen : entry->len-scrstart;
|
||||
|
||||
set_color(0);
|
||||
set_color(stdscr, 0);
|
||||
move(LINES-1, promptlen);
|
||||
|
||||
for (p = entry->str+scrstart, n = 0; n < len; n++, p++) {
|
||||
if ((unsigned char) *p >= 32)
|
||||
addch((unsigned char) *p);
|
||||
else {
|
||||
set_color(ATTR_REVERSE);
|
||||
set_color(stdscr, ATTR_REVERSE);
|
||||
addch(*p+'A'-1);
|
||||
set_color(0);
|
||||
set_color(stdscr, 0);
|
||||
}
|
||||
}
|
||||
clrtoeol();
|
||||
|
||||
move_cursor(LINES-1, scrpos+promptlen);
|
||||
screen_refresh();
|
||||
screen_refresh(NULL);
|
||||
}
|
||||
|
||||
void gui_entry_set_prompt(const char *str)
|
||||
|
|
@ -78,7 +78,7 @@ void gui_entry_set_prompt(const char *str)
|
|||
promptlen = strlen(prompt);
|
||||
}
|
||||
|
||||
set_color(0);
|
||||
set_color(stdscr, 0);
|
||||
mvaddstr(LINES-1, 0, prompt);
|
||||
|
||||
entry_screenpos();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue