mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
fc4022d173
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.
19 lines
333 B
C
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;
|