Hi all. Yesterday I wrote to the maintainer of abook because the cursor wasn't showing me where I was in the addressbook entries (at least not in braille; hadn't tried with speakup). He sent me back a patch which I believe one must use with cvs; at least I used it with cvs. If you have cvs installed on your system, go to the directory under which you want to have the source directory for abook (I went to /usr/local/src) and do the following: cvs -d:pserver:anonymous@xxxxxxxxxxxxxxxxxxx:/cvsroot/abook login When you are asked for a password just hit enter. You should be returned to your shell prompt with no comment as I recall. If you get a complaint from your cvs installation about no .cvspass file just do it again. After this do the same command as above but instead of login type checkout abook and abook will be downloaded. Go into the abook directory and copy this patch into the abook directory. Then type: patch <abook-cursor.patch Note the lessthan sign with no space between it and the filename. You should see some output showing the patching is being done and then will be returned to the shell prompt. Then do ./configure, make and make install as you would usually when compiling. In your ~/.abook/abookrc put the following line: set show_cursor=true When you start abook you should immediately see that the cursor is now showing to the left of your first entry and as you arrow up and down the cursor will now show clearly where you are in your list of entries. If you appreciate this please email jheinonen@xxxxxxxxxxxxxxxxxxxxx and thank him. He indicated that if it worked well he could include it in a future release. I'm going to try including the patch as an attachment. If it doesn't show up onlist I'll send again and insert it in the main message. I know most of you didn't need the detailed explanation but i thought somebody might. Enjoy!!! that isn't present just do it again -- Cheryl "Where your treasure is, there will your heart be also."
--- ./list.c.orig 2005-05-29 17:12:11.000000000 +0300 +++ ./list.c 2005-05-29 19:32:24.000000000 +0300 @@ -1,6 +1,6 @@ /* - * $Id: list.c,v 1.21 2004/06/30 19:47:43 jheinonen Exp $ + * $Id: list.c,v 1.22 2005/05/29 16:32:24 jheinonen Exp $ * * by JH <jheinonen@xxxxxxxxxxxxxxxxxxxxx> * @@ -110,6 +110,11 @@ print_list_line(i, line, i == curitem); } + if(opt_get_bool(BOOL_SHOW_CURSOR)) { + wmove(list, curitem - first_list_item, 0); + /* need to call refresh() to update the cursor positions */ + refresh(); + } wrefresh(list); } --- ./ui.c.orig 2005-05-29 17:09:51.000000000 +0300 +++ ./ui.c 2005-05-29 19:32:25.000000000 +0300 @@ -1,6 +1,6 @@ /* - * $Id: ui.c,v 1.31 2004/04/19 17:08:00 jheinonen Exp $ + * $Id: ui.c,v 1.32 2005/05/29 16:32:25 jheinonen Exp $ * * by JH <jheinonen@xxxxxxxxxxxxxxxxxxxxx> * @@ -375,13 +375,15 @@ for(;;) { can_resize = TRUE; /* it's safe to resize now */ - hide_cursor(); - if( should_resize ) + if(!opt_get_bool(BOOL_SHOW_CURSOR)) + hide_cursor(); + if(should_resize) refresh_screen(); ch = getch(); - show_cursor(); + if(!opt_get_bool(BOOL_SHOW_CURSOR)) + show_cursor(); can_resize = FALSE; /* it's not safe to resize anymore */ - switch( ch ) { + switch(ch) { case 'q': return; case 'Q': quit_abook(QUIT_DONTSAVE); break; case 'P': print_stderr(selected_items() ? --- ./options.c.orig 2005-05-29 17:39:03.000000000 +0300 +++ ./options.c 2005-05-29 19:32:24.000000000 +0300 @@ -1,6 +1,6 @@ /* - * $Id: options.c,v 1.21 2003/12/05 18:11:55 jheinonen Exp $ + * $Id: options.c,v 1.22 2005/05/29 16:32:24 jheinonen Exp $ * * by JH <jheinonen@xxxxxxxxxxxxxxxxxxxxx> * @@ -66,6 +66,7 @@ { "add_email_prevent_duplicates", OT_BOOL, BOOL_ADD_EMAIL_PREVENT_DUPLICATES, FALSE }, { "sort_field", OT_STR, STR_SORT_FIELD, UL "nick" }, + { "show_cursor", OT_BOOL, BOOL_SHOW_CURSOR, FALSE }, { NULL } }; --- ./options.h.orig 2005-05-29 17:40:18.000000000 +0300 +++ ./options.h 2005-05-29 17:40:48.000000000 +0300 @@ -18,6 +18,7 @@ BOOL_MUTT_RETURN_ALL_EMAILS, BOOL_USE_ASCII_ONLY, BOOL_ADD_EMAIL_PREVENT_DUPLICATES, + BOOL_SHOW_CURSOR, BOOL_MAX };
_______________________________________________ Blinux-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/blinux-list