author | Sebastian Harl <sh@tokkee.org> | |
Tue, 4 Feb 2014 21:57:46 +0000 (22:57 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 4 Feb 2014 21:57:46 +0000 (22:57 +0100) | ||
commit | d85780ce9c65b6a38d7149c71e93e91d904f66a2 | |
tree | a068a4301349e747920a60234a2845db9569f3c7 | tree | snapshot |
parent | 50e174b8a18431d969d27cfaca58c8de14029ea4 | commit | diff |
sysdb: Use the asynchronous readline interface; handle asynch server replies.
For this, setup the terminal in non-canonical, raw mode in order to be able to
handle each single character input. This allows to handle user input and
asynchronous server replies at the same time but without the need to give up
sequential operation (no threads are required for the asynchronous operation).
Instead, select() is used to do the input multiplexing allowing to easily
handle different output.
For this, setup the terminal in non-canonical, raw mode in order to be able to
handle each single character input. This allows to handle user input and
asynchronous server replies at the same time but without the need to give up
sequential operation (no threads are required for the asynchronous operation).
Instead, select() is used to do the input multiplexing allowing to easily
handle different output.
src/tools/sysdb/input.c | diff | blob | history | |
src/tools/sysdb/input.h | diff | blob | history |