* show_cursor patch for abook
@ Cheryl Homiak
` Cheryl Homiak
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Cheryl Homiak @ UTC (permalink / raw)
To: blinux-list, speakup
[-- 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
};
^ permalink raw reply [flat|nested] 6+ messages in thread* show_cursor patch for abook
show_cursor patch for abook Cheryl Homiak
@ ` Cheryl Homiak
` Cheryl Homiak
` Sean McMahon
2 siblings, 0 replies; 6+ messages in thread
From: Cheryl Homiak @ UTC (permalink / raw)
To: blinux-list, speakup
[-- 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
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: show_cursor patch for abook
show_cursor patch for abook Cheryl Homiak
` Cheryl Homiak
@ ` Cheryl Homiak
` Cheryl Homiak
` Cheryl Homiak
` Sean McMahon
2 siblings, 2 replies; 6+ messages in thread
From: Cheryl Homiak @ UTC (permalink / raw)
To: blinux-list, speakup
It appears now that the patch may have been added to cvs since I did it.
I went to do the same thing on my other computer and it appeared the
patch wasn't necessary. So I compiled and installed and added the
appropriate line to my ~/.abook/abookrc and the feature works.
--
Cheryl
"Where your treasure is,
there will your heart be also."
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: show_cursor patch for abook
show_cursor patch for abook Cheryl Homiak
` Cheryl Homiak
` Cheryl Homiak
@ ` Sean McMahon
2 siblings, 0 replies; 6+ messages in thread
From: Sean McMahon @ UTC (permalink / raw)
To: Linux for blind general discussion,
Speakup is a screen review system for Linux.
And abook is?
----- Original Message -----
From: "Cheryl Homiak" <chomiak@charter.net>
To: <blinux-list@redhat.com>; <speakup@braille.uwo.ca>
Sent: Sunday, May 29, 2005 11:37 AM
Subject: show_cursor patch for abook
> 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."
>
--------------------------------------------------------------------------------
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@redhat.com
> https://www.redhat.com/mailman/listinfo/blinux-list
--------------------------------------------------------------------------------
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
show_cursor patch for abook Cheryl Homiak
` Cheryl Homiak
` Cheryl Homiak
` Cheryl Homiak
` Cheryl Homiak
` Sean McMahon
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).