Embedded TCP/IP stack  4.7.0

◆ fnet_shell_is_ctrlc()

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-2020 by Andrej Butok. http://fnet.sourceforge.net