From: William Hubbs <w.d.hubbs@gmail.com>
To: speakup@braille.uwo.ca
Subject: Re: If bash can, why not Speakup?
Date: Thu, 18 Nov 2010 14:57:29 -0600 [thread overview]
Message-ID: <20101118205729.GA30041@linux1> (raw)
In-Reply-To: <20101118202718.GD2358@sonata.rednote.net>
Hi Janina,
On Thu, Nov 18, 2010 at 03:27:18PM -0500, Janina Sajka wrote:
> Note that you can have either vim or emacs editing of bash commands.
> Emacs is the default, but you can reset this by issuing:
>
> set -o vim
>
> By, default, this provides bash shell command editing in insert mode. As
> in vim, pressing Esc takes you into command mode where all the vim
> command mode functionality is provided.
>
> So, the shell knows. That's got to be a value that's written somewhere,
> and thus something Speakup could read and respond to. I don't know
> where, but am I wrong?
There probably is a value for this written somewhere, but it is just in
a memory location that bash knows about. That is why you have to put the
command to set it up in your .bashrc file or some similar startup file
if you want this setting by default.
Since speakup is in the kernel, it doesn't have an easy way to keep
track of which programs are running in user space or where they are
stored in memory, so there isn't a way that I know of to program speakup
itself to do something like what you are asking.
The closest approximation of something like this would be to write a
patch for bash which makes it aware of speakup and has it write values
to the /sys/accessibility/speakup files to change the pitch, etc.
However, that has its own issues, for example, if I'm running multiple
instances of bash (say on several consoles), itwould be very easy to
confuse the settings by switching consoles, etc.
Does this make sense?
William
next prev parent reply other threads:[~ UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
pj
` William Hubbs
` Albert Sten-Clanton
` Steve Holmes
` Gregory Nowak
` Steve Holmes
` Gregory Nowak
` Janina Sajka
` Speech on vim backspace [Was: If bash can, why not Speakup?] Janina Sajka
` Albert Sten-Clanton
` If bash can, why not Speakup? Janina Sajka
` Rynhardt Kruger
` William Hubbs [this message]
-- strict thread matches above, loose matches on Subject: below --
pj
` William Hubbs
` Janina Sajka
Brian Buhrow
pj
pj
Janina Sajka
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=20101118205729.GA30041@linux1 \
--to=w.d.hubbs@gmail.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).