RTEMS | Only restore terminal settings on exit when captured (!300)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Wed Nov 13 01:09:39 UTC 2024
Sebastian Huber commented on a discussion on cpukit/libmisc/shell/shell.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/300#note_114828
> return false;
> }
> /* Make a raw terminal, Linux Manuals */
> - if (tcgetattr(fileno(stdin), &previous_term) >= 0) {
> + have_previous_term = tcgetattr(fileno(stdin), &previous_term);
> + if (have_previous_term == 0) {
Maybe `bool have_previous_term = false;`.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/300#note_114828
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20241113/2bbc88bc/attachment.htm>
More information about the bugs
mailing list