From: Sergey Bolshakov <s.bolshakov@belcaf.com> To: sisyphus@altlinux.ru Subject: Re: [sisyphus] emacs selection in console Date: 15 Feb 2002 17:41:56 +0200 Message-ID: <m3pu36zr97.fsf@pc313.belcaf.minsk.by> (raw) In-Reply-To: <20020215181415.5d58a868.vsu@mivlgu.murom.ru> ## On Fri, 15 Feb 2002 18:14:15 +0300 ## you wrote: SV> On Fri, 15 Feb 2002 11:07:32 +0300 (MSK) SV> Ivan Zakharyaschev <imz@altlinux.ru> wrote: >> On Thu, 14 Feb 2002, Vyt wrote: >> >> > на русской раскладке. Подскажите, пожалуйста, как включить >> > выделение shift+стрелки, копирование и вставку по ctrl+ins, >> > shift+ins в консольном emacs? >> >> У меня это осталось в TODO, сходу это сделать не получилось. >> >> Hint: можно пользоваться стандартными командами (и связанными с ними >> клавишами) для работы с выделениями в консольном emacs. >> >> Легкому включению PC-стиля для манипуляции выделениями в консоли мешают >> разные вещи. Во-первых, там некоторые названия клавиш другие в >> комбинациях. Во-вторых, возможно, что раскладки из console-tools >> недостаточно для этого приспособлены (чтобы отличать все требуемые >> состояния клавиатуры). (Посмотреть на то, какие события получает emacs в >> консоли при нажатии клавиш, можно по C-h k.) SV> Однозначно не приспособлены - Shift там игнорируется. Я пробовал SV> сделать раскладку, в которой были бы отдельные коды для SV> Shift+стрелок, это даже частично работало. Проблема в том, что SV> после этого такое выделение перестает работать в редакторе mc SV> :-(__ У меня так сделано: В .xemacs/init.el (да, у меня xemacs) --%<-- (defmacro TTYlaunch (&rest x) (list 'if (eq (console-type) 'tty)(cons 'progn x))) (TTYlaunch (define-key function-key-map "\033[35~" [paste-selection]) (define-key function-key-map "\033[36~" [copy-selection]) (define-key function-key-map "\033[37~" [kill-selection]) (define-key function-key-map "\033[40~" [buffer-prev-in-group]) (define-key function-key-map "\033[41~" [buffer-prev]) (define-key function-key-map "\033[42~" [buffer-next-in-group]) (define-key function-key-map "\033[43~" [buffer-next]) (define-key function-key-map "\033[44~" [undo]) ) --%<-- Затем изобразить в консольной раскладе нечто вроде (эта часть у меня дома :): --%<-- control keycode 111 F23 # kill-selection string F21 "\033[37~" # kill-selection и т.д. --%<-- -- Трули ерз, Сергей. "[Open Source] programming is like sex, one mistake and you have to support it for the rest of your life." --- M. Sinz, CBM Inc.
next prev parent reply other threads:[~2002-02-15 15:41 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-02-14 14:11 Vyt 2002-02-15 8:07 ` Ivan Zakharyaschev 2002-02-15 15:14 ` Sergey Vlasov 2002-02-15 15:41 ` Sergey Bolshakov [this message] 2002-02-15 16:29 ` Sergey Vlasov 2002-02-15 17:09 ` Sergey Bolshakov 2002-02-15 17:42 ` Sergey Vlasov 2002-02-15 18:03 ` Sergey Bolshakov 2002-02-15 18:22 ` Sergey Vlasov 2002-02-15 20:57 ` [sisyphus] " Mikhail Zabaluev 2002-03-03 21:16 ` Ivan Zakharyaschev
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=m3pu36zr97.fsf@pc313.belcaf.minsk.by \ --to=s.bolshakov@belcaf.com \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git