Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paste CLIPBOARD content #19

Closed
Atemu opened this issue May 23, 2021 · 5 comments
Closed

Paste CLIPBOARD content #19

Atemu opened this issue May 23, 2021 · 5 comments

Comments

@Atemu
Copy link

Atemu commented May 23, 2021

Currently, mlterm allows the user to paste the PRIMARY clipboard via S-<insert>.

I often copy text in Emacs without selecting it visually via a shortcut which means that its content is "stored" in CLIPBOARD instead of PRIMARY, making me unable to paste it into mlterm.

Since CLIPBOARD is the go-to clipboard that's used in basically all other programs for C-c C-v etc., it'd be very helpful if mlterm also had a (preferably rebindable) keyboard shortcut for pasting its content.

@arakiken
Copy link
Owner

I added INSERT_CLIPBOARD shortcut key which is not assigned to any key by default.
f863ca5

For example, the following setting enables you to copy from CLIPBOARD by pressing Shift+Control+Insert
~/.mlterm/key
Shift+Control+Insert=INSERT_CLIPBOARD

@Atemu
Copy link
Author

Atemu commented Jun 13, 2021

Thank you so much, that works brilliantly!

Might not be a bad idea to set a default shortcut to C-V or similar since that's what most users will be used to from mainstream terminal emulators like GNOME terminal, Konsole etc.

@Atemu Atemu closed this as completed Jun 13, 2021
@kopr12
Copy link

kopr12 commented Jul 20, 2021

Seems like this isn't working in Wayland version (mlterm-wl) , I can confirm it worked in mlterm

@arakiken
Copy link
Owner

Thanks.
INSERT_CLIPBOARD shortcut is now available in mlterm-wl.
c87f20d

@kopr12
Copy link

kopr12 commented Jul 24, 2021

Works, thanks!

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Jan 17, 2022
pkgsrc changes:
* switch MASTER_SITES to GitHub
* use GTK3 instead of GTK2
* remove local patches integreated into upstream (#5)

Upstream changes (noted in doc/en/ReleaseNote):

ver 3.9.2
* Support Fcitx5.
* Support GTK4 for mlconfig. (./configure --with-gtk=4.0)
* Support CSI > Ps q (XTVERSION). (Response: DCS>|mlterm(3.9.2)ST)
* Add "MOSH_UDP_PORT" environmental variable to specify UDP port or port-range
  to communicate with a mosh server.
* Add INSERT_CLIPBOARD shortcut key.
  (arakiken/mlterm#19)
* Add --fk / format_other_keys option (equivalent to "formatOtherKeys" of xterm), and
  change the default format of the escape sequence with modifyOtherKeys from
  CSI Ps; Ps u to CSI 27; Ps; Ps ~.
* Add --with-iconv, --disable-daemon, --disable-split and --disable-zmodem
  options to ./configure script.
* Add vte 0.66 API symbols to libvte compatible library.
* Show server list dialog at startup on Android.
* It is deprecated to use "mlterm" as the value of termtype / -y option.
* 'termcap' config file stops to accept multiple terminal types concated by '|'
  (e.g. xterm|xterm-256) as key.
* Arabic ligatures (U+644-U+622, U+644-U+622, U+644-U+625, U+644-U+627) occupy
  two logical columns instead of one even if --dyncomb option isn't specified.
* KBD_INPUT_NUM and MOUSE_INPUT_NUM environmental variables (for mlterm-fb)
  accept multiple device numbers by "<num>,<num>".
* Show "Config: key=value" only if shortcut keys whose format is
  "proto:(echo)key=value" is pressed.
* Merge patches:
  arakiken/mlterm#5.
  arakiken/mlterm#9.
  arakiken/mlterm#12.
  arakiken/mlterm#22.
* Bug fixes:
  Fix arakiken/mlterm#15.
  Fix arakiken/mlterm#18.
  Fix arakiken/mlterm#24.
  Fix arakiken/mlterm#28.
  Fix failure of restarting mlterm on Android. (Enbugged at 3.9.1)
  Fix segfault if mlterm screen with -t option goes outside of the display.
  Fix emoji glyphs becoming too large with cairo.
  Fix corrupt value of "word_separator" option which mlconfig outputs.
  Fix incompatibility with xterm in pressing Shift + a-z keys etc if modifyOtherKeys is 1.
  (arakiken/mlterm#21)
  Fix segfault in opening a new roxterm tab with libvte compatible library on wayland.
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue May 30, 2022
https://build.opensuse.org/request/show/979827
by user pgajdos + dimstar_suse
- version update to 3.9.2
  * Support Fcitx5.
  * Support GTK4 for mlconfig. (./configure --with-gtk=4.0)
  * Support CSI > Ps q (XTVERSION). (Response: DCS>|mlterm(3.9.2)ST)
  * Add "MOSH_UDP_PORT" environmental variable to specify UDP port or port-range
    to communicate with a mosh server.
  * Add INSERT_CLIPBOARD shortcut key.
    (arakiken/mlterm#19)
  * Add --fk / format_other_keys option (equivalent to "formatOtherKeys" of xterm), and
    change the default format of the escape sequence with modifyOtherKeys from
    CSI Ps; Ps u to CSI 27; Ps; Ps ~.
  * Add --with-iconv, --disable-daemon, --disable-split and --disable-zmodem
    options to ./configure script.
  * Add vte 0.66 API symbols to libvte compatible library.
  * Show server list dialog at startup o
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants