From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from cdj436.emirates.net.ae ([217.165.126.182] helo=informatic.com) by speech.braille.uwo.ca with smtp (Exim 3.36 #1 (Debian)) id 1DcSg2-0004UT-00 for ; Sun, 29 May 2005 14:38:23 -0400 Received: (qmail 30698 invoked by uid 0); 29 May 2005 18:36:07 -0000 Received: from emirates.net.ae by localhost with POP3 (fetchmail-6.2.1) for postmaster@localhost (multi-drop); Sun, 29 May 2005 22:36:07 +0400 (GST) Received: from AR1-ES.emirates.net.ae ([195.229.241.245]) by auhdu3.emirates.net.ae (I&ES Mail Server 4.2) with SMTP id <0IH900LH2L34EA@auhdu3.emirates.net.ae> for venky@emirates.net.ae; Sun, 29 May 2005 22:37:53 +0400 (GST) Received: from dimail1.emirates.net.ae(213.42.1.72) by AR1-ES.emirates.net.ae via csmap id 82debefe_d071_11d9_82c4_0002b3c81b23_10326; Sun, 29 May 2005 22:43:12 +0400 (GST) Received: from mail.emigratus.com ([65.182.166.228]) by dimail1.emirates.net.ae (I&ES Mail Server 4.2) with SMTP id <0IH9001RLL31H0@dimail1.emirates.net.ae> for venky@emirates.net.ae (ORCPT venky@emirates.net.ae); Sun, 29 May 2005 22:37:51 +0400 (GST) Received: (qmail 28545 invoked by uid 510); Sun, 29 May 2005 18:37:33 +0000 Received: (qmail 28541 invoked from network); Sun, 29 May 2005 18:37:32 +0000 Received: from unknown (HELO hormel.redhat.com) (209.132.177.30) by ihsystem-65-182-166-228.pugmarks.net with SMTP; Sun, 29 May 2005 18:37:32 +0000 Received: from listman.util.phx.redhat.com (listman.util.phx.redhat.com [10.8.4.110]) by hormel.redhat.com (Postfix) with ESMTP id 9BAEB7381E; Sun, 29 May 2005 14:37:47 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.util.phx.redhat.com (8.12.11/8.12.10) with ESMTP id j4TIbjJF015062 for ; Sun, 29 May 2005 14:37:45 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j4TIbjO06424 for ; Sun, 29 May 2005 14:37:45 -0400 Received: from mxsf16.cluster1.charter.net (mxsf16.cluster1.charter.net [209.225.28.216]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j4TIbi9V032375 for ; Sun, 29 May 2005 14:37:44 -0400 Received: from mxip13a.cluster1.charter.net (mxip13a.cluster1.charter.net [209.225.28.143]) by mxsf16.cluster1.charter.net (8.12.11/8.12.11) with ESMTP id j4TIbX5g027228 for ; Sun, 29 May 2005 14:37:33 -0400 Received: from c24.180.186.195.mad.wi.charter.com (HELO bygracealone.cah.charter.net) (24.180.186.195) by mxip13a.cluster1.charter.net with SMTP; Sun, 29 May 2005 14:37:34 -0400 Received: by bygracealone.cah.charter.net (sSMTP sendmail emulation); Sun, 29 May 2005 13:37:31 -0500 Date: Sun, 29 May 2005 13:37:31 -0500 From: Cheryl Homiak Sender: blinux-list-bounces@redhat.com To: blinux-list@redhat.com, speakup@braille.uwo.ca Errors-to: blinux-list-bounces@redhat.com Message-ID: <20050529183731.GA23036@bygracealone> MIME-version: 1.0 Content-type: multipart/mixed; boundary=RnlQjJ0d97Da+TV1 Content-disposition: inline Precedence: junk X-Loop: blinux-list@redhat.com X-BeenThere: blinux-list@redhat.com User-Agent: Mutt/1.5.8i X-IronPort-AV: i="3.93,148,1115006400"; d="scan'208"; a="1133236809:sNHT19752772" X-RedHat-Spam-Score: 0 X-Mailman-Version: 2.1.5 Original-recipient: rfc822;venky@emirates.net.ae X-Fetchmail-Warning: no recipient addresses matched declared local names Subject: show_cursor patch for abook X-BeenThere: speakup@braille.uwo.ca Reply-To: Linux for blind general discussion , "Speakup is a screen review system for Linux." List-Id: "Speakup is a screen review system for Linux." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2005 18:38:54 -0000 Message-ID: <20050529183731.-4yZ-LWu-74AWKBAus6hsR-wWW_wcUZhIfE_ax8Unag@z> --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline 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@cvs.sourceforge.net:/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 * @@ -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 * @@ -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 * @@ -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 }; --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Blinux-list mailing list Blinux-list@redhat.com https://www.redhat.com/mailman/listinfo/blinux-list --RnlQjJ0d97Da+TV1--