summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2002-09-19 02:35:06 +0000
committerKeith Seitz <keiths@redhat.com>2002-09-19 02:35:06 +0000
commitd3cb6d531b01be6e16eb48ff683bb8f5b8cd9940 (patch)
treec6b01a06bc3837d2b185186c8d9d183cd73dbfaa /gdb
parent90b05b388cbccc9399a41c0a8df8fc5f39c04414 (diff)
downloadgdb-d3cb6d531b01be6e16eb48ff683bb8f5b8cd9940.tar.gz
* library/console.itb (_build_win): Bind control-c and control-v
to copy and paste.
Diffstat (limited to 'gdb')
-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