Embedded TCP/IP stack: fnet_shell_is_ctrlc

FNET

fnet_bool_t fnet_shell_is_ctrlc ( fnet_shell_desc_t  desc)

Detects if the [Ctrl]+[c] is received.

Returns
This function returns:
  • 0 if [Ctrl]+[c] is not received/pressed.
  • 1 if [Ctrl]+[c] is received/pressed.

This function detects if the [Ctrl]+[c] command is received.
It can be used by blocking shell commands to detect that a user wants to terminate the command activity.


© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net