This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 6b3b42008 examples/nxterm: add full-screen window option
6b3b42008 is described below
commit 6b3b42008be6f2d32b448b84f83a0c9a0629e207
Author: raiden00pl <[email protected]>
AuthorDate: Sat Aug 22 07:42:22 2026 +0200
examples/nxterm: add full-screen window option
Use the full framebuffer instead of the example's centered three-quarter
window.
Signed-off-by: raiden00pl <[email protected]>
Assisted-by: Claude Code
---
examples/nxterm/Kconfig | 7 +++++++
examples/nxterm/nxterm_main.c | 8 ++++++++
2 files changed, 15 insertions(+)
diff --git a/examples/nxterm/Kconfig b/examples/nxterm/Kconfig
index b1cc3a7df..489942442 100644
--- a/examples/nxterm/Kconfig
+++ b/examples/nxterm/Kconfig
@@ -57,6 +57,13 @@ config EXAMPLES_NXTERM_WCOLOR
hex "Window color"
default 0xcf1f
+config EXAMPLES_NXTERM_FULLSCREEN
+ bool "Full-screen window"
+ default n
+ ---help---
+ Size the NXTerm window to cover the complete display instead of
+ centering it at three quarters of the display size.
+
config EXAMPLES_NXTERM_TOOLBAR_HEIGHT
int "Toolbar height"
default 16
diff --git a/examples/nxterm/nxterm_main.c b/examples/nxterm/nxterm_main.c
index 6fbf0be6d..d42735533 100644
--- a/examples/nxterm/nxterm_main.c
+++ b/examples/nxterm/nxterm_main.c
@@ -268,6 +268,13 @@ int main(int argc, FAR char *argv[])
/* Determine the size and position of the window */
+#ifdef CONFIG_EXAMPLES_NXTERM_FULLSCREEN
+ g_nxterm_vars.wndo.wsize.w = g_nxterm_vars.xres;
+ g_nxterm_vars.wndo.wsize.h = g_nxterm_vars.yres;
+
+ g_nxterm_vars.wpos.x = 0;
+ g_nxterm_vars.wpos.y = 0;
+#else
g_nxterm_vars.wndo.wsize.w = g_nxterm_vars.xres / 2 +
g_nxterm_vars.xres / 4;
g_nxterm_vars.wndo.wsize.h = g_nxterm_vars.yres / 2 +
@@ -275,6 +282,7 @@ int main(int argc, FAR char *argv[])
g_nxterm_vars.wpos.x = g_nxterm_vars.xres / 8;
g_nxterm_vars.wpos.y = g_nxterm_vars.yres / 8;
+#endif
/* Set the window position */