Ticket #1498 (closed defect: wontfix)

Opened 7 years ago

Last modified 7 years ago

Narrow panels if terminal window is too wide

Reported by: ache Owned by:
Priority: trivial Milestone: Future Releases
Component: mc-tty Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:

Description

If a terminal window is wider than 512 symbols, MC starts with panels only 80 symbols wide (40 each). If the window is resized, panels are resized correctly, however.

Change History

comment:1 Changed 7 years ago by angel_il

i try run terminal 630х200 - no problem.

comment:2 Changed 7 years ago by ache

Gentoo, AMD64, gnone-terminal 2.24.2-r1 or XFCE terminal 0.2.12. Problem still observed at 630х200 as well.

630х200 or 200x630?

Occurs at MC start ONLY. When window is resized to width >512, MC behaves correctly.

comment:3 Changed 7 years ago by angel_il

i set font 2pt and start terminal ~630х200
width: 630
height: 200

comment:4 Changed 7 years ago by andrew_b

  • Component changed from mc-core to mc-tty
  • Blocked By 1474 added

Confirmed with slang-2.1.3. This bug is S-Lang related, not NCurses.

Currently, during initalization S-Lang limits the scren size. Look at SLtt_get_screen_size():

   if ((r <= 0) || (r > SLTT_MAX_SCREEN_ROWS)) r = 24;
   if ((c <= 0) || (c > SLTT_MAX_SCREEN_COLS)) c = 80;
   SLtt_Screen_Rows = r;
   SLtt_Screen_Cols = c;

where r and c are the actual screen sizes. But

# define SLTT_MAX_SCREEN_COLS 512 
# define SLTT_MAX_SCREEN_ROWS 512 

comment:5 Changed 7 years ago by iNode

# define SLTT_MAX_SCREEN_COLS 512 
# define SLTT_MAX_SCREEN_ROWS 512

So, it's resonable library "feature".
If you think this is bug, please write
bug report to s-lang developers.

comment:6 Changed 7 years ago by iNode

  • Status changed from new to closed
  • Resolution set to wontfix

comment:7 Changed 7 years ago by andrew_b

  • Blocked By 1474 removed

(In #1474) Merged to master.

git log --pretty=oneline 3eeeb35..e1cbec7
Note: See TracTickets for help on using tickets.