implement "--More--" for Qt
Support MSGTYPE=stop by having qt_display_nhwindow(WIN_MESSAGE,TRUE) issue a tty-style --More-- prompt. For popup_dialog Off, the prompt gets appended to the most recent message; for popup_dialog On, it is issued via a popup and not displayed in the message window. It accepts <space>, ^J, ^M, and ^[ (ESC) to dismiss. There's no way to dismiss it with the mouse (for !popup_dialog) which might need some fix.... Several adventures along the way. The '^C-in-parent-terminal triggers infinite loop repeatedly complaining about "event loop already running"' is now a one-shot complaint. It isn't fixed but the severity of having it happen is greatly reduced.
This commit is contained in:
@@ -1225,10 +1225,10 @@ void NetHackQtMainWindow::keyPressEvent(QKeyEvent* event)
|
||||
if (message) message->Scroll(0,+1);
|
||||
break;
|
||||
case Qt::Key_Space:
|
||||
if ( flags.rest_on_space ) {
|
||||
event->ignore();
|
||||
return;
|
||||
}
|
||||
//if (flags.rest_on_space) {
|
||||
event->ignore(); // punt to NetHackQtBind::notify()
|
||||
return;
|
||||
//}
|
||||
case Qt::Key_Enter:
|
||||
if ( map )
|
||||
map->clickCursor();
|
||||
|
||||
Reference in New Issue
Block a user