Re: [HACKERS] psql and Control-C

From: Alfred Perlstein <bright(at)wintelcom(dot)net>
To: chris(at)bitmead(dot)com
Cc: PostgreSQL Development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] psql and Control-C
Date: 2000-02-18 02:21:28
Message-ID: 20000217182128.H21720@fw.wintelcom.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Chris Bitmead <chrisb(at)nimrod(dot)itg(dot)telstra(dot)com(dot)au> [000217 17:56] wrote:
> Peter Eisentraut wrote:
> >
> > On 2000-02-18, Chris Bitmead mentioned:
> >
> > > The typical way to do this sort of thing is to longjmp back to the main
> > > loop. And I think if you look at sig.c in bash, this is probably what
> > > they are doing.
> >
> > Don't wanna look at that GPL'd code ... ;)
>
> If you don't know how to interact with readline, I think you're gonna
> have to look at some GPL code ;)

Actually, FreeBSD(*) has 'libedit' which is pretty nice, it could
be made to work under other systems and has a nice unencumbered
license. :)

-Alfred

(*)
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Christos Zoulas of Cornell University.
(*)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2000-02-18 04:49:29 Re: [HACKERS] create database doesn't work well in MULTIBYTE mode
Previous Message Chris Bitmead 2000-02-18 01:23:25 Re: [HACKERS] psql and Control-C