Project

General

Profile

Bug #8245

issuing nslookup and Ctr+C, makes terminal loose echo,new line

Added by Nikola M. almost 4 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
OI-Userland
Target version:
-
Start date:
2017-05-17
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

After a long time seeing this console error (it is the same under local VGA console, across VT terminals and inside mate-desktop),
I have found a way to easily reproduce it (so it is present for a long time in OI):
Reproducing:
Go into CLI (mate-terminal, of any system console, including xterm) and type 'nslookup' command and hit Return.
After that Just hit two-button key press: Ctrl+C to exit nslookup command.

Result: When hitting Return key in CLI, it does not ge tinto the new line, but continue to print data in the same line, garbling output.
If entering additional comamnds in CLI, key pressed does not display in the CLI, but are accepted as commands, just not displayed.

How should work:
After exiting 'nslookup' command with Ctrl+C , terminal should normally put output into new line when pressing Return
and should have echo on keypresses.

I have seen this king of behavior for a long time in many situations after many different commands,
but it always was a problem to report for finding exact way to reproduce.
It is possible that also other CLI applications do something similar to terminal/console sessions?

Suggestion I got from tsoome is that it could be about:
"SIGINT handler does not restore terminal mode" and
"terminal mode is global property and if it is changed in a bad way, then it stays like that." - that is same like observed.
Also, it can't reported on 'dilos' illumos distribution with "nslookup 9.10.3-P4-DilOS".

No data to display

Also available in: Atom PDF