diff -- git a/ usr_sbin/ editpolicy.c b/ usr_sbin/ editpolicy.c
index 45dd0ef..09e3b10 100644
--- a/ usr_sbin/ editpolicy.c
+++ b/ usr_sbin/ editpolicy.c
@@ - 2270 ,6 + 2270 ,21 @@ static void ccs_show_list( void )
}
/**
+ * ccs_click1 - Callback for clicking the left mouse button
+ *
+ * Returns nothing.
+ */
+ static void ccs_click1( MEVENT mevent)
+ {
+ struct ccs_screen * ptr = & ccs_screen[ ccs_current_screen] ;
+ /* header is 3 tall */
+ if ( mevent.y < 3 )
+ return ;
+ ptr- > y = mevent.y - 3 ;
+ ccs_show_current( ) ;
+ }
+
+ /**
* ccs_resize_window - Callback for resize event.
*
* Returns nothing.
@@ -3222,6 +3237,8 @@ static enum ccs_screen_type ccs_generic_list_loop(void)
ptr->current = saved_cursor[ccs_current_screen].current;
ptr->y = saved_cursor[ccs_current_screen].y;
}
+ MEVENT mevent;
+ mousemask(ALL_MOUSE_EVENTS, NULL);
start:
if (ccs_current_screen == CCS_SCREEN_DOMAIN_LIST) {
if (!ccs_domain_sort_type) {
@@ -3281,6 +3298,13 @@ start2:
if (c == ERR)
continue; /* Ignore invalid key. */
switch ( c) {
+ case KEY_MOUSE:
+ if ( getmouse( & mevent) == OK) {
+ if ( mevent.bstate & BUTTON1_CLICKED) {
+ ccs_click1( mevent) ;
+ }
+ }
+ break ;
case KEY_RESIZE:
ccs_resize_window( ) ;
ccs_show_list( ) ;
ZGlmZiAtLWdpdCBhL3Vzcl9zYmluL2VkaXRwb2xpY3kuYyBiL3Vzcl9zYmluL2VkaXRwb2xpY3kuYwppbmRleCA0NWRkMGVmLi4wOWUzYjEwIDEwMDY0NAotLS0gYS91c3Jfc2Jpbi9lZGl0cG9saWN5LmMKKysrIGIvdXNyX3NiaW4vZWRpdHBvbGljeS5jCkBAIC0yMjcwLDYgKzIyNzAsMjEgQEAgc3RhdGljIHZvaWQgY2NzX3Nob3dfbGlzdCh2b2lkKQogfQogCiAvKioKKyAqIGNjc19jbGljazEgLSBDYWxsYmFjayBmb3IgY2xpY2tpbmcgdGhlIGxlZnQgbW91c2UgYnV0dG9uCisgKgorICogUmV0dXJucyBub3RoaW5nLgorICovCitzdGF0aWMgdm9pZCBjY3NfY2xpY2sxKE1FVkVOVCBtZXZlbnQpCit7CisgICAgICAgc3RydWN0IGNjc19zY3JlZW4gKnB0ciA9ICZjY3Nfc2NyZWVuW2Njc19jdXJyZW50X3NjcmVlbl07CisgICAgICAgLyogaGVhZGVyIGlzIDMgdGFsbCAqLworICAgICAgIGlmIChtZXZlbnQueSA8IDMpCisgICAgICAgICAgICAgICByZXR1cm47CisgICAgICAgcHRyLT55ID0gbWV2ZW50LnkgLSAzOworICAgICAgIGNjc19zaG93X2N1cnJlbnQoKTsKK30KKworLyoqCiAgKiBjY3NfcmVzaXplX3dpbmRvdyAtIENhbGxiYWNrIGZvciByZXNpemUgZXZlbnQuCiAgKgogICogUmV0dXJucyBub3RoaW5nLgpAQCAtMzIyMiw2ICszMjM3LDggQEAgc3RhdGljIGVudW0gY2NzX3NjcmVlbl90eXBlIGNjc19nZW5lcmljX2xpc3RfbG9vcCh2b2lkKQogICAgICAgICAgICAgICAgcHRyLT5jdXJyZW50ID0gc2F2ZWRfY3Vyc29yW2Njc19jdXJyZW50X3NjcmVlbl0uY3VycmVudDsKICAgICAgICAgICAgICAgIHB0ci0+eSA9IHNhdmVkX2N1cnNvcltjY3NfY3VycmVudF9zY3JlZW5dLnk7CiAgICAgICAgfQorICAgICAgIE1FVkVOVCBtZXZlbnQ7CisgICAgICAgbW91c2VtYXNrKEFMTF9NT1VTRV9FVkVOVFMsIE5VTEwpOwogc3RhcnQ6CiAgICAgICAgaWYgKGNjc19jdXJyZW50X3NjcmVlbiA9PSBDQ1NfU0NSRUVOX0RPTUFJTl9MSVNUKSB7CiAgICAgICAgICAgICAgICBpZiAoIWNjc19kb21haW5fc29ydF90eXBlKSB7CkBAIC0zMjgxLDYgKzMyOTgsMTMgQEAgc3RhcnQyOgogICAgICAgICAgICAgICAgaWYgKGMgPT0gRVJSKQogICAgICAgICAgICAgICAgICAgICAgICBjb250aW51ZTsgLyogSWdub3JlIGludmFsaWQga2V5LiAqLwogICAgICAgICAgICAgICAgc3dpdGNoIChjKSB7CisgICAgICAgICAgICAgICBjYXNlIEtFWV9NT1VTRToKKyAgICAgICAgICAgICAgICAgICAgICAgaWYgKGdldG1vdXNlKCZtZXZlbnQpID09IE9LKSB7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgKG1ldmVudC5ic3RhdGUgJiBCVVRUT04xX0NMSUNLRUQpIHsKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNjc19jbGljazEobWV2ZW50KTsKKyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB9CisgICAgICAgICAgICAgICAgICAgICAgIH0KKyAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlIEtFWV9SRVNJWkU6CiAgICAgICAgICAgICAgICAgICAgICAgIGNjc19yZXNpemVfd2luZG93KCk7CiAgICAgICAgICAgICAgICAgICAgICAgIGNjc19zaG93X2xpc3QoKTsK
compilation info
prog.cpp:2:7: error: invalid suffix "dd0ef..09e3b10" on integer constant
prog.cpp:5: error: stray ‘@’ in program
prog.cpp:5: error: stray ‘@’ in program
prog.cpp:5: error: stray ‘@’ in program
prog.cpp:5: error: stray ‘@’ in program
prog.cpp:38:35: warning: "/*" within comment
prog.cpp:1: error: expected constructor, destructor, or type conversion before ‘--’ token
prog.cpp:6: error: expected declaration before ‘}’ token
stdout