aboutsummaryrefslogtreecommitdiff
path: root/sys/linux/port/os/types.h
diff options
context:
space:
mode:
authorNicholas <nbnoll@eml.cc>2021-12-10 15:49:00 -0800
committerNicholas <nbnoll@eml.cc>2021-12-10 15:53:05 -0800
commit2e719300a037bbdafdc8a5c38b4812c678d62ddc (patch)
treeb5750baaadc2b5d0b5fe22b85ca39bbea4f837c0 /sys/linux/port/os/types.h
parent25537c3d3b9b68af91573dec39d1f46c3d97f735 (diff)
Chore: merge main into laptopselfhost
Diffstat (limited to 'sys/linux/port/os/types.h')
-rw-r--r--sys/linux/port/os/types.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/linux/port/os/types.h b/sys/linux/port/os/types.h
index 9452e39..7f83c3d 100644
--- a/sys/linux/port/os/types.h
+++ b/sys/linux/port/os/types.h
@@ -1,4 +1,5 @@
#pragma once
+
#define packed __attribute__((packed))
/*
@@ -112,11 +113,10 @@ struct sys·DirEntry
* terminal
*/
-/* termios
- * NOTE: this is incorrect for Mips and PowerPC...
- */
typedef struct sys·TerminalIO sys·TerminalIO;
+typedef struct sys·WindowSize sys·WindowSize;
+/* termios NOTE: this is incorrect for Mips and PowerPC... */
struct sys·TerminalIO
{
uint i,o,c,l; /* input,output,control,local flags */
@@ -126,4 +126,11 @@ struct sys·TerminalIO
uint ospeed; /* output speed */
};
+/* screen/window */
+struct sys·WindowSize
+{
+ ushort row, col;
+ ushort dx, dy; /* pixels */
+};
+
#undef packed