Skip to content
Snippets Groups Projects
Commit cb48e245 authored by Panagiotis H.M. Issaris's avatar Panagiotis H.M. Issaris Committed by Mans Rullgard
Browse files

Do no modify terminal parameters using termios.h


Remove usage of tcgetattr and tcsetattr to modify terminal
parameters, and rely on ctrl-c to stop instead of pressing 'q'.
On systems with conio.h, keep the old behavior.

Changing the terminal settings causes problems if multiple instances
are running asynchronously on the same terminal, such as during a
parallel FATE run, or if the process crashes before restoring the
terminal.  In both cases, the terminal state is messed up requiring
a manual reset.

Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
parent e87a6f0d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment