mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-25 14:05:15 +00:00
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;
|