2019-05-07 01:39:10 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
2019-09-06 15:34:26 +02:00
|
|
|
#include <AK/String.h>
|
2019-09-15 18:54:20 +10:00
|
|
|
#include <AK/Vector.h>
|
2019-05-07 01:39:10 +02:00
|
|
|
#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;
|
2019-10-20 20:02:55 +13:00
|
|
|
struct termios default_termios;
|
2019-05-07 01:39:10 +02:00
|
|
|
bool was_interrupted { false };
|
2019-07-08 19:04:13 +02:00
|
|
|
bool was_resized { false };
|
2019-09-08 20:00:35 -05:00
|
|
|
int last_return_code { 0 };
|
2019-09-15 18:54:20 +10:00
|
|
|
Vector<String> directory_stack;
|
2019-05-07 01:39:10 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern GlobalState g;
|