serenity/Shell/GlobalState.h
Andreas Kling fc4022d173 Shell: Handle SIGWINCH to get a nice behavior when resizing.
When resizing the terminal, we now clear the entire current line and reset
the shell's LineEditor input state. This makes it look and feel kinda the
same as xterm.

Fixes #286.
2019-07-08 19:06:06 +02:00

19 lines
333 B
C

#pragma once
#include <AK/AKString.h>
#include <termios.h>
struct GlobalState {
String cwd;
String username;
String home;
char ttyname[32];
char hostname[32];
pid_t sid;
uid_t uid;
struct termios termios;
bool was_interrupted { false };
bool was_resized { false };
};
extern GlobalState g;