Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.apps > #931
| From | "Andrew T." <and4y2@turnquist.name.invalid> |
|---|---|
| Newsgroups | comp.os.linux.development.apps |
| Subject | [SOLVED] Re: ncursesw narrows my screen. What am I missing? |
| Date | 2023-10-16 00:35 +0000 |
| Organization | Poor |
| Message-ID | <ugi0hb$ptlj$1@dont-email.me> (permalink) |
| References | <uga371$2pjsp$1@dont-email.me> |
On 2023-10-13, Andrew T. <and4y2@turnquist.name.invalid> wrote: > > With no other changes other than the library linking, when I start the > program, everything is cut off at the 20 column mark (on an 80 > character screen). I've tried this on the linux console, Eterm, and > uxterm all with the same result. If I set the environment variable > COLUMNS=320 (4*80), I get the full screen, except some functions (like > box() ) now really think the window is 320 columns. > > Am I missing something here? Yes, I was missing something. It took just the right incantation on StartDuckDuckGooglePage (something like ncursesw panel). I'd call it a documentation bug/shortcoming. I am also using the panel library, and it turns out there are wide-character versions of the auxiliary curses libraries as well. They are not mentioned in the man pages (as far as I can see). So the simple solution: When using libncursesw, you must also use the 'w' versions of the auxiliary libraries (panel, menu, form). My old LIBS variable in my Makefile was (roughly): LIBS = -lpanel -lncursesw # Wrong (mixing versions) It needs to be: LIBS = -lpanelw -lncursesw # Right (all are 'w' versions) and then everything just started working. I should probably report it as a documentation bug... --Andrew -- Andrew Turnquist, Short Tract, New York, USA (USDA Zone 5) ... wandering the streets of Usenet ... (Remove numbers and .invalid for email address) "Do what you can with what you have where you are." -T Roosevelt
Back to comp.os.linux.development.apps | Previous | Next — Previous in thread | Find similar
ncursesw narrows my screen. What am I missing? "Andrew T." <and4y2@turnquist.name.invalid> - 2023-10-13 00:32 +0000 Re: ncursesw narrows my screen. What am I missing? Grant Edwards <invalid@invalid.invalid> - 2023-10-13 01:15 +0000 [SOLVED] Re: ncursesw narrows my screen. What am I missing? "Andrew T." <and4y2@turnquist.name.invalid> - 2023-10-16 00:35 +0000
csiph-web