This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add copy/paste bindings in Console


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]