Commit 0e01ff86 authored by deuce's avatar deuce
Browse files

Support scrollwheel in offline scrollback.

parent 11d392f5
......@@ -290,6 +290,8 @@ void viewofflinescroll(void)
gotoxy(1,1);
textattr(uifc.hclr|(uifc.bclr<<4)|BLINK);
gettextinfo(&sbtxtinfo);
ciomouse_addevent(CIOLIB_BUTTON_4_PRESS);
ciomouse_addevent(CIOLIB_BUTTON_5_PRESS);
for(i=0;!i && !quitting;) {
if(top<1)
......@@ -320,6 +322,12 @@ void viewofflinescroll(void)
case CIOLIB_BUTTON_1_DRAG_START:
mousedrag(scrollback_buf);
break;
case CIOLIB_BUTTON_4_PRESS:
top--;
break;
case CIOLIB_BUTTON_5_PRESS:
top++;
break;
}
break;
case CIO_KEY_UP:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment