You are not logged in.
I'm working on a curses installer and I was wondering if I can trust the terminal size on the installation media to be COLUMNS=170, LINES=48 ?
Last edited by drobole (2012-08-27 13:26:31)
Offline
Wouldn't it be better, in either case, to detect the width and height and use those variables in place of the "magic numbers" 170 and 48?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Wouldn't it be better, in either case, to detect the width and height and use those variables in place of the "magic numbers" 170 and 48?
That would be the logical way to do things, but the problem is that its hard to create a UI that will take advantage of a bigger terminal only when available.
Simply resizing the UI might make it look better, but I wont be of any help layout wise.
Right now I'm trying to fit the UI on a 80x25 terminal, something that puts a serious limitation on the layout. However, if I could increase this minimum size it would make things a lot easier
Last edited by drobole (2012-08-27 11:05:32)
Offline
Offline
Ok, thanks for the input guys
Offline