aboutsummaryrefslogtreecommitdiff
path: root/sys/linux/port/os/types.h
diff options
context:
space:
mode:
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