summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/gdbtk/ChangeLog5
-rw-r--r--gdb/gdbtk/library/console.itb4
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/gdbtk/ChangeLog b/gdb/gdbtk/ChangeLog
index 0846152e416..62d5200a432 100644
--- a/gdb/gdbtk/ChangeLog
+++ b/gdb/gdbtk/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-18 Keith Seitz <keiths@redhat.com>
+
+ * library/console.itb (_build_win): Bind control-c and control-v
+ to copy and paste.
+
2002-08-15 Keith Seitz <keiths@redhat.com>
* README: Massive update.
diff --git a/gdb/gdbtk/library/console.itb b/gdb/gdbtk/library/console.itb
index a4e635e8c48..0cd96fb7ec6 100644
--- a/gdb/gdbtk/library/console.itb
+++ b/gdb/gdbtk/library/console.itb
@@ -192,7 +192,9 @@ body Console::_build_win {} {
} [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