public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Fergus Henderson <fjh@cs.mu.OZ.AU>
To: chuck@hysteria.spb.ru (Chuck Bogorad)
Cc: gnu-win32@cygnus.com (gnu-win32)
Subject: Re: pasting from clipboard in bash
Date: Thu, 27 Mar 1997 14:38:00 -0000	[thread overview]
Message-ID: <199703270228.NAA31376@mundook.cs.mu.OZ.AU> (raw)
In-Reply-To: <333903DE@hysteria.spb.ru>

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 <fjh@cs.mu.oz.au>   |  "I have always known that the pursuit
WWW: < http://www.cs.mu.oz.au/~fjh >   |  of excellence is a lethal habit"
PGP: finger fjh@128.250.37.3         |     -- the last words of T. S. Garp.
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

  reply	other threads:[~1997-03-27 14:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-26  5:02 Chuck Bogorad
1997-03-27 14:38 ` Fergus Henderson [this message]
1997-03-28  8:24   ` Chet Ramey

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=199703270228.NAA31376@mundook.cs.mu.OZ.AU \
    --to=fjh@cs.mu.oz.au \
    --cc=chuck@hysteria.spb.ru \
    --cc=gnu-win32@cygnus.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).