Hello,
i'm writing a C program using Ncurses, and i don't know how to put the terminal into full-screen.
Would you help me please.
Thank you :)
5 replies to this topic
#1
Posted 14 August 2010 - 04:12 AM
|
|
|
#2
Posted 14 August 2010 - 04:43 AM
Don't think you can do that trough ncurses. Since you are saying "make the terminal into fullscreen" you must be using a Desktop Environment with Linux. Originally the terminal is fullscreen in linux but the terminals you use trough a DE like GNOME or KDE runs as it's own program that reads the output from the Linux kernel terminal. So I guess you'll first have to check up on the window id of the terminal application that is running your program and then tell it to go fullscreen trough xlib. This is what I can think of top of my head. Don't know if there's a simpler way-
My Code Blog - My Github - Ascension Project - Madness Script Project - Simple-Garbage-Collector Project
There is bound to be something useful somewhere.
There is bound to be something useful somewhere.
#3
Posted 14 August 2010 - 05:13 AM
On Debian (GNOME), you can switch the terminal to fullscreen mode by pressing [F11]. It's not impossible, but I don't know whether one can change that from an extern program.
Greets,
artificial
Greets,
artificial
Sometimes words ain't enough to express something. That's why computer scientists use double words.
#4
Posted 14 August 2010 - 06:36 AM
Well any environment based on xlib is not limited to only manipulating it's own windows. All you gotta do is get the window id(just a normal integer if I remember right) which you pass along to the function that changes the window state to fullscreen. Though how to get the window id, I have no idea.
My Code Blog - My Github - Ascension Project - Madness Script Project - Simple-Garbage-Collector Project
There is bound to be something useful somewhere.
There is bound to be something useful somewhere.
#6
Posted 14 August 2010 - 09:56 AM
Thank you :thumbup:
I'll try to use xlib
i'll keep you up-to-date :)
I'll try to use xlib
i'll keep you up-to-date :)
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









