public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
From: Cheryl Homiak <chomiak@charter.net>
To: blinux-list@redhat.com, speakup@braille.uwo.ca
Subject: show_cursor patch for abook
Date: Sun, 29 May 2005 13:37:31 -0500	[thread overview]
Message-ID: <20050529183731.GA23036@bygracealone> (raw)

[-- Attachment #1: Type: text/plain, Size: 2008 bytes --]

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 <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@users.sourceforge.net 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."

[-- Attachment #2: abook-cursor.patch --]
[-- Type: text/plain, Size: 2187 bytes --]

--- ./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@users.sourceforge.net>
  *
@@ -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@users.sourceforge.net>
  *
@@ -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@users.sourceforge.net>
  *
@@ -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
 };
 

WARNING: multiple messages have this Message-ID
From: Cheryl Homiak <chomiak@charter.net>
To: blinux-list@redhat.com, speakup@braille.uwo.ca
Subject: show_cursor patch for abook
Date: Sun, 29 May 2005 13:37:31 -0500	[thread overview]
Message-ID: <20050529183731.GA23036@bygracealone> (raw)
Message-ID: <20050529183731.-4yZ-LWu-74AWKBAus6hsR-wWW_wcUZhIfE_ax8Unag@z> (raw)

[-- Attachment #1: Type: text/plain, Size: 2008 bytes --]

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 <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@users.sourceforge.net 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."

[-- Attachment #2: abook-cursor.patch --]
[-- Type: text/plain, Size: 2187 bytes --]

--- ./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@users.sourceforge.net>
  *
@@ -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@users.sourceforge.net>
  *
@@ -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@users.sourceforge.net>
  *
@@ -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
 };
 

[-- Attachment #3: Type: text/plain, Size: 147 bytes --]

_______________________________________________
Blinux-list mailing list
Blinux-list@redhat.com
https://www.redhat.com/mailman/listinfo/blinux-list

             reply	other threads:[~ UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
 Cheryl Homiak [this message]
 ` Cheryl Homiak
 ` Cheryl Homiak
   ` Cheryl Homiak
   ` Cheryl Homiak
 ` Sean McMahon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050529183731.GA23036@bygracealone \
    --to=chomiak@charter.net \
    --cc=blinux-list@redhat.com \
    --cc=speakup@braille.uwo.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).