mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
LibLinEdit + Shell: handle signals
This allows the LineEditor to get notified about signals, since we cannot set signal handlers in a clean way within the LineEditor instance.
This commit is contained in:
parent
21c4c67119
commit
5062a7d4cd
3 changed files with 12 additions and 12 deletions
|
@ -42,14 +42,8 @@ LineEditor::LineEditor(struct termios termios)
|
|||
}
|
||||
|
||||
LineEditor::LineEditor()
|
||||
: m_termios({})
|
||||
, m_initialized(false)
|
||||
: LineEditor(termios {})
|
||||
{
|
||||
struct winsize ws;
|
||||
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) < 0)
|
||||
m_num_columns = 80;
|
||||
else
|
||||
m_num_columns = ws.ws_col;
|
||||
}
|
||||
|
||||
LineEditor::~LineEditor()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue