diff --git a/ulib/system/system.c b/ulib/system/system.c index 358ed89..e2b5416 100644 --- a/ulib/system/system.c +++ b/ulib/system/system.c @@ -186,3 +186,7 @@ int32_t ipc_mbusdttch(char *name) { int32_t term_write(char *buffer, size_t len) { return syscall(SYS_TERM_WRITE, (uint64_t)buffer, (uint64_t)len, 0, 0, 0, 0); } + +int32_t term_getsizes(uint16_t *w, uint16_t *h) { + return syscall(SYS_TERM_GETSIZES, (uint64_t)w, (uint64_t)h, 0, 0, 0, 0); +} diff --git a/ulib/system/system.h b/ulib/system/system.h index 6dc463a..12229f5 100644 --- a/ulib/system/system.h +++ b/ulib/system/system.h @@ -55,5 +55,6 @@ int32_t ipc_mbusconsume(char *name, uint8_t *const buffer); int32_t ipc_mbusattch(char *name); int32_t ipc_mbusdttch(char *name); int32_t term_write(char *buffer, size_t len); +int32_t term_getsizes(uint16_t *w, uint16_t *h); #endif // ULIB_SYSTEM_SYSTEM_H_