All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Cordes <peter@cordes.ca>
To: Karel Zak <kzak@redhat.com>
Cc: Benno Schulenberg <bensberg@justemail.net>,
	Util-Linux <util-linux@vger.kernel.org>
Subject: Re: cfdisk's input fields behave awkwardly (in utf8 locale)
Date: Mon, 02 Feb 2015 08:49:25 -0400	[thread overview]
Message-ID: <20150202124925.GC3933@cordes.ca> (raw)
In-Reply-To: <20150202123736.GN16162@ws.net.home>

On Mon, Feb 02, 2015 at 01:37:36PM +0100, Karel Zak wrote:
> On Mon, Feb 02, 2015 at 08:29:23AM -0400, Peter Cordes wrote:
> >
> >  Maybe link with GNU readline, to avoid reinventing the wheel.
> 
> yep, and maybe for all fdisks, but it would be probably nice to have
> it optional (--with-readline), and without readline keep it simple and
> stupid.

 Yeah, I think that's the behaviour I've seen from other packages.
When built without readline, they just leave the tty in cooked mode,
so a line of input becomes read(2)able when the user presses return.

 I guess cfdisk already has an arrow-key driven UI, so the wrapper
for readline (that compiles to a fallback #ifndef HAVE_READLINE) would
have to put the tty in/out of cooked mode.

-- 
#define X(x,y) x##y
Peter Cordes ;  e-mail: X(peter@cor , des.ca)

"The gods confound the man who first found out how to distinguish the hours!
 Confound him, too, who in this place set up a sundial, to cut and hack
 my day so wretchedly into small pieces!" -- Plautus, 200 BC

  parent reply	other threads:[~2015-02-02 12:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-01 14:02 cfdisk's input fields behave awkwardly (in utf8 locale) Benno Schulenberg
2015-02-02 12:11 ` Karel Zak
2015-02-02 12:29   ` Peter Cordes
2015-02-02 12:37     ` Karel Zak
2015-02-02 12:46       ` Ingo Brückl
2015-02-02 12:49       ` Peter Cordes [this message]
2015-02-03 15:22       ` Ondrej Oprala
2015-02-02 20:42   ` Benno Schulenberg
2015-02-03 10:22     ` Karel Zak

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=20150202124925.GC3933@cordes.ca \
    --to=peter@cordes.ca \
    --cc=bensberg@justemail.net \
    --cc=kzak@redhat.com \
    --cc=util-linux@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.