Subject: Re: pasting from clipboard in bash
From: [email-masked] (Fergus Henderson)

27 Mar 1997 19:36:49 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Content-Type: text
Original-To: [email-masked] (Chuck Bogorad)
Original-Cc: [email-masked] (gnu-win32)
In-Reply-To: <[email-masked]> from "Chuck Bogorad" at Mar 26, 97 02:09:18 pm
X-Mailer: ELM [version 2.4 PL24]
Original-Sender: [email-masked]

Chuck Bogorad, you wrote:
> 
> i've always wanted to be able to press insert and get first line from the 
> clipboard into command line. so here it is. i diff'd (diff -crb) a 'clean' 
> b17.1-bash source (no patches applied).
> 
> what it does - you now have one more function available for bindng - 
> 'paste-from-clipboard'. i mapped it to INSERT:
> 
> > bind '"\e[2~":paste-from-clipboard'

You should send these changes to the bash maintainer.

> === cut ===
> diff -crb /usr/local/src/bash/cpp-Makefile bash-patched/cpp-Makefile
> *** /usr/local/src/bash/cpp-Makefile   Thu Jan 01 03:02:52 1970
> --- bash-patched/cpp-Makefile   Wed Mar 26 14:03:36 1997
> ***************
> *** 685,691 ****
>          $(GLOB_LIBRARY) $(TILDE_LIBRARY) $(MALLOC_LIBRARY) $(LOCAL_LIBS)
>   #else /* !LD_HAS_NO_DASH_L */
>   LIBRARIES = $(READLINE_LIB) $(HISTORY_LIB) $(TERMCAP_LIB) $(GLOB_LIB) \
> !        $(TILDE_LIB) $(MALLOC_LIB) $(LOCAL_LIBS)
>   #endif /* !LD_HAS_NO_DASH_L */
>   
>   #if defined (READLINE)
> --- 685,691 ----
>          $(GLOB_LIBRARY) $(TILDE_LIBRARY) $(MALLOC_LIBRARY) $(LOCAL_LIBS)
>   #else /* !LD_HAS_NO_DASH_L */
>   LIBRARIES = $(READLINE_LIB) $(HISTORY_LIB) $(TERMCAP_LIB) $(GLOB_LIB) \
> !        $(TILDE_LIB) $(MALLOC_LIB) $(LOCAL_LIBS) -luser32
>   #endif /* !LD_HAS_NO_DASH_L */

That change should be inside `#ifdef __CYGWIN32__' or something like that.

> { "non-incremental-reverse-search-history-again", 
> rl_noninc_reverse_search_again },
> +   { "paste-from-clipboard", rl_paste_from_clipboard },
>     { "possible-completions", rl_possible_completions },

Ditto.

-- 
Fergus Henderson <[email-masked]>   |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>   |  of excellence is a lethal habit"
PGP: finger [email-masked]         |     -- the last words of T. S. Garp.
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".