From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qw0-f42.google.com (mail-qw0-f42.google.com [209.85.216.42]) by speech.braille.uwo.ca (Postfix) with ESMTP id 8FF3EC1A3FA for ; Thu, 18 Nov 2010 15:57:33 -0500 (EST) Received: by qwd6 with SMTP id 6so231047qwd.29 for ; Thu, 18 Nov 2010 12:57:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=FlvIhlC911VjpN20NAaFnvAlMy8kXaJPL3/Fim/N9Ng=; b=heViyWCcbyoZ/M0ReSGfR47GLUmqwh6AjUfKmxjE0xQk9o5OvZsGgINrFsB+fLVCVV rrznX5eUwPzaP4TioZ+1aJ2rSGgOvBZNHvUVlXw7IxO14tsj/dHvjIQZdic3ZYOscDrG qSNhFrpKE0wAsAb7SSdKdmE8lQgpMrRILIR4w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; b=XQXcTBm9IlgI4i4PBUhCVvPMYtjnaCsrrcTMLe5J4Dfq1zXJEx4DgpgYciGnzZ/pLI 6XruKPdizbqBMHPY3CnHSyjTC44nyaoTkiuUIpUFWlULZCTaCYPOx+RPXzhqw2yJ40c1 I6V6O4P8KfuByIxSAgWPL6zYblRxI7vRN1F6Q= Received: by 10.224.218.73 with SMTP id hp9mr993732qab.70.1290113853238; Thu, 18 Nov 2010 12:57:33 -0800 (PST) Received: from linux1 (cpe-76-183-49-63.tx.res.rr.com [76.183.49.63]) by mx.google.com with ESMTPS id x9sm475918qco.10.2010.11.18.12.57.30 (version=SSLv3 cipher=RC4-MD5); Thu, 18 Nov 2010 12:57:32 -0800 (PST) Received: by linux1 (sSMTP sendmail emulation); Thu, 18 Nov 2010 14:57:29 -0600 Date: Thu, 18 Nov 2010 14:57:29 -0600 From: William Hubbs To: speakup@braille.uwo.ca Subject: Re: If bash can, why not Speakup? Message-ID: <20101118205729.GA30041@linux1> Mail-Followup-To: speakup@braille.uwo.ca References: <98haom$7bpkcl@ipmail06.adl6.internode.on.net> <20101117233043.GA26689@linux1> <20101118202718.GD2358@sonata.rednote.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20101118202718.GD2358@sonata.rednote.net> User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: speakup@braille.uwo.ca X-Mailman-Version: 2.1.13 Precedence: list Reply-To: "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: Thu, 18 Nov 2010 20:57:33 -0000 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: >=20 > set -o vim >=20 > 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. >=20 > 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