Hot answers tagged

5

The Alt-. runs readline function yank-last-arg: yank-last-arg (M-., M-_) Insert the last argument to the previous command (the last word of the previous history entry). With a numeric argument, behave exactly like yank-nth-arg. Successive calls to yank-last-arg move back through the history list, inserting the last ...


2

In most terminals (a side-effect of the way ASCII is encoded), ^/ is the same as ^_ (control_). The help-screen for nano on my Debian 7 machine shows that as Go to line and column number. M-/ is harder, since there is no standard for this. However, nano uses the assumption that the meta keys simply have an escape character as prefix. Again, the help-...


2

Most tutorials you can find are about bash. Ksh is very good at scripting but is bad at interactive use. Use zsh (best) or bash (second-best) as a command line if you can. There are two main implementations of ksh today: the actual Korn shell ksh93, and the clone mksh (derived from the long-unmaintained pdksh). They have different key binding facilities. ...


1

The Magic SysRq key is meant for situations like this. [The Magic SysRq key] is a 'magical' key combo you can hit which the kernel will respond to regardless of whatever else it is doing, unless it is completely locked up. Note that support has to be compiled into the kernel for it to work. This is a slightly better solution because it works even if ...


1

The behavior on pressing Ctrl+Alt+Delete is configurable. When you press this key combination, the kernel sends a SIGINT signal to process 1 (init), so it's up to init to decide. With systemd, SIGINT starts the ctrl-alt-del.target unit. By default /lib/systemd/system/ctrl-alt-del.target is a symbolic link to reboot.target. Create a symbolic link /etc/...


1

The code implements these two bindings like this: if (ctrl && meta && (keysym == XK_c || keysym == XK_v)) { if (keysym == XK_v) selection_request (ev.time, Sel_Clipboard); else if (selection.len > 0) { free (selection.clip_text); selection.clip_text = rxvt_wcsdup (selection.text, ...


1

There are unrelated differences between Red Hat 6 and Ubuntu 16 for the screen-256color entry: the latter adds dim and omits initc. Neither of those changes is related to cursor-keys. Presumably the value of TERM outside tmux is xterm. There are also unrelated changes between the two systems for the xterm entry (the cursor color extensions mentioned in ...


1

Uim First released in 2005, uim is a multilingual input method library with interfaces to GTK and QT, as well as anything that supports xim (and more). Looking at computers I have nearby, Arch Linux, NetBSD, and Ubuntu all offer uim packages through their default distribution channels, which (to me) indicates some measure of acceptance in the community at ...


1

With xte that comes with the xautomation package it is possible to send keypresses to X. The package name may differ between Linux distros. This command will type a ☭: xte 'keydown Shift_L' 'keydown Control_L' 'str u262d' 'keyup Control_L' 'keyup Shift_L' By setting up a keybinding in your windowmanager for a similar xte command for the lira symbol, you ...


1

I recently bumped against a similar problem and, for future reference, here is a workaround: map <c-o> focus_inputbar ":exec acroread $FILE" This will map ctrl+o (or whichever your key is) to open the input bar you would normally open with : and input there that text. You can then press Enter to launch the command. This is far from ideal and still ...


1

Not sure if it suppose to be comment or not, however: after reading and using @yotam's comment (thanks! you've got my upvote). I've decided to take it to the next level, by patching xkb-switch to allow both -n and -p flags, and by that making it possible to switch to the next layout and printing it. until merge can be cloned from here. Now it's possible to ...



Only top voted, non community-wiki answers of a minimum length are eligible