mirror of
https://github.com/lihop/godot-xterm.git
synced 2025-05-10 14:05:32 +02:00
Change terminal menu option 'Select All' -> 'Copy All'
Adds copy_all() function to terminal node which returns all of the screen's text.
This commit is contained in:
parent
703eb68f11
commit
97e07093b2
4 changed files with 14 additions and 2 deletions
|
@ -16,7 +16,7 @@ enum TerminalPopupMenuOptions {
|
|||
NEW_TERMINAL = 0,
|
||||
COPY = 2,
|
||||
PASTE = 3,
|
||||
SELECT_ALL = 4,
|
||||
COPY_ALL = 4,
|
||||
CLEAR = 6,
|
||||
KILL_TERMINAL = 7,
|
||||
}
|
||||
|
@ -216,6 +216,8 @@ func _on_TerminalPopupMenu_id_pressed(id):
|
|||
event.unicode = ord(OS.clipboard[i])
|
||||
event.pressed = true
|
||||
terminal._gui_input(event)
|
||||
TerminalPopupMenuOptions.COPY_ALL:
|
||||
OS.clipboard = terminal.copy_all()
|
||||
TerminalPopupMenuOptions.CLEAR:
|
||||
terminal.clear()
|
||||
TerminalPopupMenuOptions.KILL_TERMINAL:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue