ctrl C , ctrl Z

Philippe49Philippe49 Membre
19:07 modifié dans Objective-C, Swift, C, C++ #1
Je  ne me souviens plus de tous les raccourcis Unix pour le terminal lorsqu'on lance une tâche ...
Ctrl C : Fait Interrupt (SIGINT) ou Terminate (SIGTERM) ou SIGKILL ?
Ctrl Z : Correspond à  Suspend
Resume correspond à  quoi ?

Réponses

  • Philippe49Philippe49 Membre
    19:07 modifié #2
    Les bindkeys sot visibles en passant sous shell csh , et en utilisant bindkey 

    % csh<br />[new-host:~/Desktop] bureau% bindkey<br />Standard key bindings<br />&quot;^@&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; set-mark-command<br />&quot;^A&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; beginning-of-line<br />&quot;^B&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; backward-char<br />&quot;^C&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; tty-sigintr<br />&quot;^D&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; delete-char-or-list-or-eof<br />&quot;^E&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; end-of-line<br />&quot;^F&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; forward-char<br />&quot;^G&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; is undefined<br />&quot;^H&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; backward-delete-char<br />&quot;^I&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; complete-word<br />&quot;^J&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; newline<br />&quot;^K&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; kill-line<br />&quot;^L&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; clear-screen<br />&quot;^M&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; newline<br />&quot;^N&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; down-history<br />&quot;^O&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; tty-flush-output<br />&quot;^P&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; up-history<br />&quot;^Q&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; tty-start-output<br />&quot;^R&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; redisplay<br />&quot;^S&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; tty-stop-output<br />&quot;^T&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; transpose-chars<br />&quot;^U&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; kill-whole-line<br />&quot;^V&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; quoted-insert<br />&quot;^W&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; kill-region<br />&quot;^X&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; sequence-lead-in<br />&quot;^Y&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; yank<br />&quot;^Z&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; tty-sigtsusp<br />&quot;^[&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; sequence-lead-in<br />&quot;^&#092;&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; tty-sigquit<br />&quot;^]&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; tty-dsusp<br />&quot; &quot;&nbsp; to &quot;/&quot;&nbsp; &nbsp; -&gt;&nbsp; self-insert-command<br />&quot;0&quot;&nbsp; to &quot;9&quot;&nbsp; &nbsp; -&gt;&nbsp; digit<br />&quot;:&quot;&nbsp; to &quot;~&quot;&nbsp; &nbsp; -&gt;&nbsp; self-insert-command<br />&quot;^?&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; backward-delete-char<br />&quot;^?&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; list-choices<br />&quot;^?&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; backward-delete-word<br />&quot;^?&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; complete-word<br />&quot;^?&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; clear-screen<br />&quot;^?&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; run-fg-editor<br />&quot;^?&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; complete-word<br />&quot;^?&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt;&nbsp; copy-prev-word<br />&quot;&#092;240&quot; to &quot;à¿&quot;&nbsp;  -&gt;&nbsp; self-insert-command<br />Alternative key bindings<br />Multi-character bindings<br />&quot;^[[A&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; up-history<br />&quot;^[[B&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; down-history<br />&quot;^[[C&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; forward-char<br />&quot;^[[D&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; backward-char<br />&quot;^[[H&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; beginning-of-line<br />&quot;^[[F&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; end-of-line<br />&quot;^[OA&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; up-history<br />&quot;^[OB&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; down-history<br />&quot;^[OC&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; forward-char<br />&quot;^[OD&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; backward-char<br />&quot;^[OH&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; beginning-of-line<br />&quot;^[OF&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; end-of-line<br />&quot;^[^D&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; list-choices<br />&quot;^[^H&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; backward-delete-word<br />&quot;^[^I&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; complete-word<br />&quot;^[^L&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; clear-screen<br />&quot;^[^Z&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; run-fg-editor<br />&quot;^[^[&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; complete-word<br />&quot;^[^_&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; copy-prev-word<br />&quot;^[ &quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; expand-history<br />&quot;^[!&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; expand-history<br />&quot;^[$&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; spell-line<br />&quot;^[/&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; dabbrev-expand<br />&quot;^[0&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; digit-argument<br />&quot;^[1&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; digit-argument<br />&quot;^[2&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; digit-argument<br />&quot;^[3&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; digit-argument<br />&quot;^[4&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; digit-argument<br />&quot;^[5&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; digit-argument<br />&quot;^[6&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; digit-argument<br />&quot;^[7&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; digit-argument<br />&quot;^[8&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; digit-argument<br />&quot;^[9&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; digit-argument<br />&quot;^[?&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; which-command<br />&quot;^[B&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; backward-word<br />&quot;^[C&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; capitalize-word<br />&quot;^[D&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; delete-word<br />&quot;^[F&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; forward-word<br />&quot;^[H&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; run-help<br />&quot;^[L&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; downcase-word<br />&quot;^[N&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; history-search-forward<br />&quot;^[P&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; history-search-backward<br />&quot;^[R&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; toggle-literal-history<br />&quot;^[S&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; spell-word<br />&quot;^[U&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; upcase-word<br />&quot;^[W&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; copy-region-as-kill<br />&quot;^[Y&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; yank-pop<br />&quot;^[_&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; insert-last-word<br />&quot;^[b&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; backward-word<br />&quot;^[c&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; capitalize-word<br />&quot;^[d&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; delete-word<br />&quot;^[f&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; forward-word<br />&quot;^[h&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; run-help<br />&quot;^[l&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; downcase-word<br />&quot;^[n&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; history-search-forward<br />&quot;^[p&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; history-search-backward<br />&quot;^[r&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; toggle-literal-history<br />&quot;^[s&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; spell-word<br />&quot;^[u&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; upcase-word<br />&quot;^[w&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; copy-region-as-kill<br />&quot;^[y&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; yank-pop<br />&quot;^[^?&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; backward-delete-word<br />&quot;^X^X&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; exchange-point-and-mark<br />&quot;^X*&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; expand-glob<br />&quot;^X$&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; expand-variables<br />&quot;^XG&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; list-glob<br />&quot;^Xg&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; list-glob<br />&quot;^Xn&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; normalize-path<br />&quot;^XN&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; normalize-path<br />&quot;^X?&quot;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; normalize-command<br />&quot;^X^I&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; complete-word-raw<br />&quot;^X^D&quot;&nbsp; &nbsp; &nbsp; &nbsp;  -&gt; list-choices-raw<br />Arrow key bindings<br />down&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt; down-history<br />up&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt; up-history<br />left&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt; backward-char<br />right&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; forward-char<br />home&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  -&gt; beginning-of-line<br />end&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt; end-of-line<br />
    
  • AliGatorAliGator Membre, Modérateur
    19:07 modifié #3
    C'est bizarre j'aurais plutôt dit que ça dépendait du terminal (tty) que du shell, moi, ça...?
  • Philippe49Philippe49 Membre
    juillet 2009 modifié #4
    dans 1243184665:

    C'est bizarre j'aurais plutôt dit que ça dépendait du terminal (tty) que du shell, moi, ça...?

    Je passe sous csh car sous sh, la commande bindkey n'est pas opérationnelle.
    Maintenant comment cela se boutique entre le shell, l'application terminal et le process fils, je serais content de l'apprendre.
Connectez-vous ou Inscrivez-vous pour répondre.