From tiltonj@erols.com Fri Oct 19 15:30:35 2001 Path: ulcc.ac.uk!server3.netnews.ja.net!newspeer.clara.net!news.clara.net!feed2.onemain.com!feed1.onemain.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail From: tiltonj@erols.com (Jay Tilton) Newsgroups: rec.games.roguelike.nethack Subject: Re: tips for a Qt/X11 -> tty convert? also a few tty YANIs Date: Tue, 16 Oct 2001 23:10:45 GMT Organization: none yet Lines: 42 Message-ID: <3bccb9fe.297539352@news.erols.com> References: <87g08jpsw8.fsf@dgp.toronto.edu> <9qhl3g$7b6$1@cc.joensuu.fi> X-Trace: UmFuZG9tSVaB5dI9uFyOFtXT66KrZDbN2D0my23/ShlwVEEANUHGzluAN+hove2p X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 16 Oct 2001 23:11:22 GMT X-Newsreader: Forte Free Agent 1.21/32.243 Xref: ulcc.ac.uk rec.games.roguelike.nethack:149299 On 16 Oct 2001 15:52:16 GMT, Pasi Kallinen wrote: >Maciej Kalisiak wrote: >> On a related note, would there be any disadvantages to using the full >> window on a ^P? I believe Zangband does this. Essentially just fill >> the window with previous messages, and allow scrolling by pagefuls >> back and forth. This would make a lot of sense for looking at stuff >> that happened before your last big adventure in a "big room"... > >I'd like to see this implemented, too. I changed my /win/tty/wintty.c to accomplish just that. I scrapped the old tty_doprev_message() and replaced it with this: int tty_doprev_message() { winid prevmsg_win; register struct WinDesc *cw = wins[WIN_MESSAGE]; int i; prevmsg_win = create_nhwindow(NHW_MENU); putstr(prevmsg_win, 0, "Message History"); putstr(prevmsg_win, 0, ""); i = cw->maxcol; do { if(cw->data[i] && strcmp(cw->data[i], "") ) putstr(prevmsg_win, 0, cw->data[i]); i = (i + 1) % cw->rows; } while (i != cw->maxcol); putstr(prevmsg_win, 0, toplines); display_nhwindow(prevmsg_win, TRUE); destroy_nhwindow(prevmsg_win); return; } It works as desired for me (MSDOS), but it is far from rigorously tested, so I can't guess if it will work for other system configurations. I don't know if there are side-effects, but I haven't noticed any peculiar behavior. In other words, YMMV.