* [Comm] Ctrl-C и SIGINT
@ 2005-12-14 11:22 Valentin Lavrinenko
2005-12-14 14:05 ` Yura Kalinichenko
0 siblings, 1 reply; 3+ messages in thread
From: Valentin Lavrinenko @ 2005-12-14 11:22 UTC (permalink / raw)
To: community
Здравтсвуйте, All!
Может кто-то подсказать, каким образом консольное приложение
может обрабатывать нажатие Ctrl-C отдельно от SIGINT? Таким занимается,
например, telnet - при получении SIGINT (kill -SIGINT <telnet pid>) он
обрывает
связь и выходит, а нажатие Ctrl-C пересылает. Поиски на гугле и в исходниках
telnet'а пока ничего не дали, буду продолжать, но если кто-то ткнет в
документацию -
буду весьма признателен.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Comm] Ctrl-C и SIGINT
2005-12-14 11:22 [Comm] Ctrl-C и SIGINT Valentin Lavrinenko
@ 2005-12-14 14:05 ` Yura Kalinichenko
2005-12-14 14:40 ` Valentin Lavrinenko
0 siblings, 1 reply; 3+ messages in thread
From: Yura Kalinichenko @ 2005-12-14 14:05 UTC (permalink / raw)
To: ALT Linux Community
В Срд, 14/12/2005 в 13:22 +0200, Valentin Lavrinenko пишет:
> Здравтсвуйте, All!
>
> Может кто-то подсказать, каким образом консольное приложение
> может обрабатывать нажатие Ctrl-C отдельно от SIGINT? Таким занимается,
> например, telnet - при получении SIGINT (kill -SIGINT <telnet pid>) он
> обрывает
> связь и выходит, а нажатие Ctrl-C пересылает. Поиски на гугле и в исходниках
> telnet'а пока ничего не дали, буду продолжать, но если кто-то ткнет в
> документацию -
> буду весьма признателен.
Если приложение без экранного интерфейса - man termios.
Если с интерфейсом на ncurses - man 3x raw.
--
Юрий Калиничено
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-14 14:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-14 11:22 [Comm] Ctrl-C и SIGINT Valentin Lavrinenko
2005-12-14 14:05 ` Yura Kalinichenko
2005-12-14 14:40 ` Valentin Lavrinenko
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git