{"action":"closed","issue":{"url":"https://api.github.com/repos/hanslub42/rlwrap/issues/44","repository_url":"https://api.github.com/repos/hanslub42/rlwrap","labels_url":"https://api.github.com/repos/hanslub42/rlwrap/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/hanslub42/rlwrap/issues/44/comments","events_url":"https://api.github.com/repos/hanslub42/rlwrap/issues/44/events","html_url":"https://github.com/hanslub42/rlwrap/issues/44","id":166299122,"number":44,"title":"Sending keypresses directly to underlying command, even in readline mode","user":{"login":"hanslub42","id":6263546,"avatar_url":"https://avatars.githubusercontent.com/u/6263546?v=3","gravatar_id":"","url":"https://api.github.com/users/hanslub42","html_url":"https://github.com/hanslub42","followers_url":"https://api.github.com/users/hanslub42/followers","following_url":"https://api.github.com/users/hanslub42/following{/other_user}","gists_url":"https://api.github.com/users/hanslub42/gists{/gist_id}","starred_url":"https://api.github.com/users/hanslub42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hanslub42/subscriptions","organizations_url":"https://api.github.com/users/hanslub42/orgs","repos_url":"https://api.github.com/users/hanslub42/repos","events_url":"https://api.github.com/users/hanslub42/events{/privacy}","received_events_url":"https://api.github.com/users/hanslub42/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hanslub42/rlwrap/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-19T10:33:33Z","updated_at":"2016-07-19T10:37:20Z","closed_at":"2016-07-19T10:37:20Z","body":"Some programs use one or more keys to  interrupt an ongoing computation or even an ongoing edit. \r\n\r\nIn many cases this is done by manipulating its special character [VINTR](https://www.gnu.org/software/libc/manual/html_node/Signal-Characters.html) so that this key generates a `SIGINT`. This is e.g. what `emacs` does, and `rlwrap`s transparency takes care of that: as soon as `rlwrap` notices that VINTR has changed, ([which may be a bit too late](https://github.com/hanslub42/rlwrap/issues/3)) it will  do the same with its own  VINTR, so that the same key generates the same signal, which is then passed on to the rlwrapped command.\r\n\r\nBut some programs, like Erlangs `erl` shell, catch the keypress directly, even while the user is editing a command line (in this case a CTRL-G to prompt for a \"user switch command\"), without using a signal.\r\n\r\nIf we `rlwrap -a`  such a program, nothing will happen when we press CTRL-G .\r\n\r\nWe need a way to make `rlwrap` pass those keypresses directly to the rlwrapped program, without disrupting the ongoing line edit (although the program may decide that the keypress indeed interrupts the line edit (as `erl` does) this is not in general what we want)\r\n\r\n"}}
{"actor":{"display_login":"hanslub42"}}