* [Buildroot] uemacs doesn't clear ixon termios flag?
@ 2012-04-25 14:24 Grant Edwards
2012-04-25 20:55 ` Grant Edwards
0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2012-04-25 14:24 UTC (permalink / raw)
To: buildroot
I've enabled the uemacs package. It builds fine, but it doesn't seem
to work unless you manually clear the termios ixon flag before running
it. If you don't do that, the Ctrl-S keystroke isn't seen by uemacs
-- instead it's intercepted by the tty layer and stops terminal
output until you hit Ctrl-Q.
Has anybody else noticed this?
--
Grant Edwards grant.b.edwards Yow! My BIOLOGICAL ALARM
at CLOCK just went off ... It
gmail.com has noiseless DOZE FUNCTION
and full kitchen!!
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] uemacs doesn't clear ixon termios flag?
2012-04-25 14:24 [Buildroot] uemacs doesn't clear ixon termios flag? Grant Edwards
@ 2012-04-25 20:55 ` Grant Edwards
2012-05-01 22:07 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Grant Edwards @ 2012-04-25 20:55 UTC (permalink / raw)
To: buildroot
On 2012-04-25, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> I've enabled the uemacs package. It builds fine, but it doesn't seem
> to work unless you manually clear the termios ixon flag before running
> it. If you don't do that, the Ctrl-S keystroke isn't seen by uemacs
> -- instead it's intercepted by the tty layer and stops terminal
> output until you hit Ctrl-Q.
This appears to be bug in uemacs that's been known about for several
years. The fix below is from the busybox mailing list 3 years ago
http://lists.busybox.net/pipermail/busybox/2009-February/068304.html:
Or you could install this one:
ftp://ftp.kernel.org/pub/software/editors/uemacs/em-4.0.15-lt.tar.bz2
but beware that this version also has a problem with ^S/^Q because
it doesn't clear IXON. You'll need the following patch before ^S/^Q
will work at all:
--- posix.c 2009/02/01 13:31:09 1.1
+++ posix.c 2009/02/01 13:32:12
@@ -51,6 +51,7 @@
/* raw CR/NL etc input handling, but keep ISTRIP if we're on a 7-bit line */
ntermios.c_iflag &= ~(IGNBRK | BRKINT | IGNPAR | PARMRK
| INPCK | INLCR | IGNCR | ICRNL);
+ ntermios.c_iflag &= ~IXON;
/* raw CR/NR etc output handling */
ntermios.c_oflag &= ~(OPOST | ONLCR | OLCUC | OCRNL | ONOCR | ONLRET);
If I submitted a patch and a modified uemacs.mk would it likely be
accepted?
--
Grant Edwards grant.b.edwards Yow! HELLO, everybody,
at I'm a HUMAN!!
gmail.com
^ permalink raw reply [flat|nested] 4+ messages in thread* [Buildroot] uemacs doesn't clear ixon termios flag?
2012-04-25 20:55 ` Grant Edwards
@ 2012-05-01 22:07 ` Peter Korsgaard
2012-05-01 23:51 ` Grant Edwards
0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2012-05-01 22:07 UTC (permalink / raw)
To: buildroot
>>>>> "Grant" == Grant Edwards <grant.b.edwards@gmail.com> writes:
Hi,
Grant> This appears to be bug in uemacs that's been known about for
Grant> several years. The fix below is from the busybox mailing list 3
Grant> years ago
Grant> http://lists.busybox.net/pipermail/busybox/2009-February/068304.html:
Grant> Or you could install this one:
Grant> ftp://ftp.kernel.org/pub/software/editors/uemacs/em-4.0.15-lt.tar.bz2
Grant> but beware that this version also has a problem with ^S/^Q because
Grant> it doesn't clear IXON. You'll need the following patch before ^S/^Q
Grant> will work at all:
That's afaik the uemacs upstream we're using.
Grant> --- posix.c 2009/02/01 13:31:09 1.1
Grant> +++ posix.c 2009/02/01 13:32:12
Grant> @@ -51,6 +51,7 @@
Grant> /* raw CR/NL etc input handling, but keep ISTRIP if we're on a 7-bit line */
Grant> ntermios.c_iflag &= ~(IGNBRK | BRKINT | IGNPAR | PARMRK
Grant> | INPCK | INLCR | IGNCR | ICRNL);
Grant> + ntermios.c_iflag &= ~IXON;
Grant> /* raw CR/NR etc output handling */
Grant> ntermios.c_oflag &= ~(OPOST | ONLCR | OLCUC | OCRNL | ONOCR | ONLRET);
Grant> If I submitted a patch and a modified uemacs.mk would it likely be
Grant> accepted?
Sure! Notice that I recently converted the uemacs package to gentargets,
but it should be functionally equivalent.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] uemacs doesn't clear ixon termios flag?
2012-05-01 22:07 ` Peter Korsgaard
@ 2012-05-01 23:51 ` Grant Edwards
0 siblings, 0 replies; 4+ messages in thread
From: Grant Edwards @ 2012-05-01 23:51 UTC (permalink / raw)
To: buildroot
On 2012-05-01, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Grant" == Grant Edwards <grant.b.edwards@gmail.com> writes:
>
> Grant> This appears to be bug in uemacs that's been known about for
> Grant> several years. The fix below is from the busybox mailing list 3
> Grant> years ago
> Grant> http://lists.busybox.net/pipermail/busybox/2009-February/068304.html:
[...]
> That's afaik the uemacs upstream we're using.
That's what I thought. I haven't looked into why upstream has been
ignoring the bug fix, but it seemed to be rather widely known.
> Grant> If I submitted a patch and a modified uemacs.mk would it likely be
> Grant> accepted?
>
> Sure! Notice that I recently converted the uemacs package to gentargets,
> but it should be functionally equivalent.
Cool. I submitted the patch a few days ago:
https://bugs.busybox.net/show_bug.cgi?id=5144
I think the patch should work both pre and post gentargets conversion.
All it does is create a new patch file in the package directory. It
doesn't touch any existing files. As long as the gentargets call
applies all of the *.patch files in alphabetical order it should "just
work".
I can stumble along with either vi or nano, but it requires too
much concentration...
--
Grant Edwards grant.b.edwards Yow! I joined scientology
at at a garage sale!!
gmail.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-05-01 23:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-25 14:24 [Buildroot] uemacs doesn't clear ixon termios flag? Grant Edwards
2012-04-25 20:55 ` Grant Edwards
2012-05-01 22:07 ` Peter Korsgaard
2012-05-01 23:51 ` Grant Edwards
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox