public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Add copy/paste bindings in Console
@ 2002-09-18 19:35 Keith Seitz
  2002-09-18 22:23 ` Fernando Nasser
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Seitz @ 2002-09-18 19:35 UTC (permalink / raw)
  To: insight

Hmmm. Somehow these disappeared. (Or maybe they never worked? I dunno.)

Keith

ChangeLog
2002-09-18  Keith Seitz  <keiths@redhat.com>

        * library/console.itb (_build_win): Bind control-c and control-v
        to copy and paste.

Patch
Index: library/console.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/console.itb,v
retrieving revision 1.21
diff -p -r1.21 console.itb
*** library/console.itb	7 Jun 2002 09:22:44 -0000	1.21
--- library/console.itb	19 Sep 2002 02:32:14 -0000
*************** body Console::_build_win {} {
*** 192,198 ****
    } [code $this _paste 1]]
    bind $_twin <<Paste>> "[code $this _paste 0]; break"
    bind $_twin <<PasteSelection>> "[code $this _paste 0]; break"
!   
    _setprompt
    pack $itk_interior.stext -expand yes -fill both
      
--- 192,200 ----
    } [code $this _paste 1]]
    bind $_twin <<Paste>> "[code $this _paste 0]; break"
    bind $_twin <<PasteSelection>> "[code $this _paste 0]; break"
!   bind_plain_key $_twin Control-c "event generate $_twin <<Copy>>"
!   bind_plain_key $_twin Control-v "[code $this _paste 1]; break"
! 
    _setprompt
    pack $itk_interior.stext -expand yes -fill both
      

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Add copy/paste bindings in Console
  2002-09-18 19:35 [PATCH] Add copy/paste bindings in Console Keith Seitz
@ 2002-09-18 22:23 ` Fernando Nasser
  2002-09-18 22:49   ` Keith Seitz
  0 siblings, 1 reply; 3+ messages in thread
From: Fernando Nasser @ 2002-09-18 22:23 UTC (permalink / raw)
  To: Keith Seitz; +Cc: insight

Wasn't it because people wanted to use Control-C to cancel?
I don't know if that ever worked either...

Fernando

Keith Seitz wrote:
> Hmmm. Somehow these disappeared. (Or maybe they never worked? I dunno.)
> 
> Keith
> 
> ChangeLog
> 2002-09-18  Keith Seitz  <keiths@redhat.com>
> 
>         * library/console.itb (_build_win): Bind control-c and control-v
>         to copy and paste.
> 
> Patch
> Index: library/console.itb
> ===================================================================
> RCS file: /cvs/src/src/gdb/gdbtk/library/console.itb,v
> retrieving revision 1.21
> diff -p -r1.21 console.itb
> *** library/console.itb	7 Jun 2002 09:22:44 -0000	1.21
> --- library/console.itb	19 Sep 2002 02:32:14 -0000
> *************** body Console::_build_win {} {
> *** 192,198 ****
>     } [code $this _paste 1]]
>     bind $_twin <<Paste>> "[code $this _paste 0]; break"
>     bind $_twin <<PasteSelection>> "[code $this _paste 0]; break"
> !   
>     _setprompt
>     pack $itk_interior.stext -expand yes -fill both
>       
> --- 192,200 ----
>     } [code $this _paste 1]]
>     bind $_twin <<Paste>> "[code $this _paste 0]; break"
>     bind $_twin <<PasteSelection>> "[code $this _paste 0]; break"
> !   bind_plain_key $_twin Control-c "event generate $_twin <<Copy>>"
> !   bind_plain_key $_twin Control-v "[code $this _paste 1]; break"
> ! 
>     _setprompt
>     pack $itk_interior.stext -expand yes -fill both
>       
> 


-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Add copy/paste bindings in Console
  2002-09-18 22:23 ` Fernando Nasser
@ 2002-09-18 22:49   ` Keith Seitz
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Seitz @ 2002-09-18 22:49 UTC (permalink / raw)
  To: Fernando Nasser; +Cc: insight

On Thu, 19 Sep 2002, Fernando Nasser wrote:

> Wasn't it because people wanted to use Control-C to cancel?
> I don't know if that ever worked either...

Nope, there's no bindings for Control-c at all. I always planned to use 
Escape for that sort of thing, because the idea that Control-C means Copy 
in a GUI is pretty widespread.

I can only assume that we had some cygnus local bindings or something. 
Maybe it never worked? Anyway, it works now! :-)

Keith


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-19  5:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-18 19:35 [PATCH] Add copy/paste bindings in Console Keith Seitz
2002-09-18 22:23 ` Fernando Nasser
2002-09-18 22:49   ` Keith Seitz

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).