|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
terminals + resizing problemsHi, Are there any issues with terminals not reporting their sizes properly on resize (especially maximise/unmaximise window operations)? My code seems fine in an xterm, but not eterm, or xfce terminal. I'm using newwin instead of mvwin or wresize though. I got confused by mvwin, should the coordinates passed to it, be relative to its current position on screen or not? Thanks, James. _______________________________________________ Bug-ncurses mailing list Bug-ncurses@... http://lists.gnu.org/mailman/listinfo/bug-ncurses |
|
|
Re: terminals + resizing problemsOn Tue, 15 Sep 2009, james morris wrote:
> > Hi, > > Are there any issues with terminals not reporting their sizes properly on > resize (especially maximise/unmaximise window operations)? none (that I recall) that would be specific to a given terminal implementation. > My code seems fine in an xterm, but not eterm, or xfce terminal. > > I'm using newwin instead of mvwin or wresize though. I got confused by > mvwin, should the coordinates passed to it, be relative to its current > position on screen or not? mvwin uses absolute coordinates -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net _______________________________________________ Bug-ncurses mailing list Bug-ncurses@... http://lists.gnu.org/mailman/listinfo/bug-ncurses |
|
|
Re: terminals + resizing problemsOn 15/9/2009, "Thomas Dickey" <dickey@...> wrote: >On Tue, 15 Sep 2009, james morris wrote: > >> >> Hi, >> >> Are there any issues with terminals not reporting their sizes properly on >> resize (especially maximise/unmaximise window operations)? > >none (that I recall) that would be specific to a given terminal >implementation. > >> My code seems fine in an xterm, but not eterm, or xfce terminal. >> >> I'm using newwin instead of mvwin or wresize though. I got confused by >> mvwin, should the coordinates passed to it, be relative to its current >> position on screen or not? > >mvwin uses absolute coordinates > Thanks, I've converted it to use wresize and mvwin instead of deleting and recreating the windows, and also changed the types of the vars used to calculate everything from char to int. My code is still broken. I'm outputting the coords/geometries of the two windows to stderr and redirecting that to another terminal from bash. it seems to show that my code is not catching all the KEY_RESIZE events from wgetch. Does KEY_RESIZE go to all windows as far as use of wgetch is concerned? James. _______________________________________________ Bug-ncurses mailing list Bug-ncurses@... http://lists.gnu.org/mailman/listinfo/bug-ncurses |
|
|
Re: terminals + resizing problemsOn 15/9/2009, "james morris" <james@...> wrote: >I'm outputting the coords/geometries of the two windows to stderr and >redirecting that to another terminal from bash. it seems to show that my >code is not catching all the KEY_RESIZE events from wgetch. > >Does KEY_RESIZE go to all windows as far as use of wgetch is concerned? FWIW: xterm: ok, no problem. Xfce (4.6) Terminal (and Eterm, probably others), there comes a point (quite quickly) while resizes the terminal window that it seems to miss a KEY_RESIZE and from then on, the (get) maxx/maxy results are a step behind. _______________________________________________ Bug-ncurses mailing list Bug-ncurses@... http://lists.gnu.org/mailman/listinfo/bug-ncurses |
|
|
Re: terminals + resizing problemsOn Tue, 15 Sep 2009, james morris wrote:
> Does KEY_RESIZE go to all windows as far as use of wgetch is concerned? "yes" - There's only one fifo for a screen, since there's only one wgetch() that should be active on a screen at a time. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net _______________________________________________ Bug-ncurses mailing list Bug-ncurses@... http://lists.gnu.org/mailman/listinfo/bug-ncurses |
| Free embeddable forum powered by Nabble | Forum Help |