diff --git a/src/syncterm/menu.c b/src/syncterm/menu.c
index 841faf9c3c0bb874abf045fdeca0799599b5fa3f..9cefc78cb8bf32af2fe34e52491a43edc9f55b67 100644
--- a/src/syncterm/menu.c
+++ b/src/syncterm/menu.c
@@ -14,6 +14,7 @@ void viewscroll(void)
 	char	*scrollback;
 	struct	text_info txtinfo;
 	int	x,y;
+	struct mouse_event mevent;
 
 	x=wherex();
 	y=wherey();
@@ -35,6 +36,9 @@ void viewscroll(void)
 		switch(key) {
 			case 0:
 				switch(getch()<<8) {
+					case CIO_KEY_MOUSE:
+						getmouse(&mevent);
+						break;
 					case CIO_KEY_UP:
 						top--;
 						break;